Skip to content

Commit

Permalink
feat: changed from lodash to lodash-es
Browse files Browse the repository at this point in the history
  • Loading branch information
surajair committed Oct 24, 2024
1 parent d602b85 commit a13821b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/history/useBlocksStoreManager.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChaiBlock } from "../types/ChaiBlock.ts";
import { useBlocksStore } from "./useBlocksStoreUndoableActions.ts";
import { find, omit } from "lodash-es";
import { merge } from "lodash";
import { merge } from "lodash-es";
import { removeNestedBlocks } from "../hooks/useRemoveBlocks.ts";
import { insertBlocksAtPosition } from "./InsertBlocksAtPosition.ts";
import { moveBlocksWithChildren } from "./moveBlocksWithChildren.ts";
Expand Down Expand Up @@ -34,7 +34,7 @@ export const useBlocksStoreManager = () => {
return prevBlocks.map((block) => {
if (blocksIds.includes(block._id)) {
const props = find(blocks, { _id: block._id });
return merge({}, block, {...omit(props, "_id")});
return merge({}, block, { ...omit(props, "_id") });
}
return block;
});
Expand Down

0 comments on commit a13821b

Please sign in to comment.