Skip to content

Commit

Permalink
Remove currying
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethbruskiewicz committed Oct 1, 2024
1 parent 4a6e4be commit 9bafae9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/AppContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ export default class AppContext {
context.setDataHarmonizers(dhs);

const appContext = buildAppContext(schema);
context.oneToManyAppContext = setup1M(appContext)(dhs);
context.oneToManyAppContext = setup1M(appContext, dhs);

return context;
});
Expand Down
4 changes: 1 addition & 3 deletions lib/utils/1m.js
Original file line number Diff line number Diff line change
Expand Up @@ -877,9 +877,7 @@ const makeColumnsReadOnly = (appContext, dh) => {
}
};

export const setup1M =
({ appContext }) =>
(dhs) => {
export const setup1M = ({ appContext }, dhs) => {
destroyHandsontableUpdateRouter();
for (let dh in dhs) {
if (dh in appContext) {
Expand Down

0 comments on commit 9bafae9

Please sign in to comment.