Skip to content

Commit

Permalink
fix: duplicate functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
atulbhatt-system32 committed Dec 20, 2023
1 parent be42d5d commit 6cefb40
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,9 @@ export const useCmdk = ({
}, [clipboardData, selectedItems, fileTree[currentFileUid], nodeTree]);

const onDuplicate = useCallback(() => {
if (clipboardData?.panel !== "file") return;
onCopy();
onPaste();
}, []);
}, [selectedItems, fileTree[currentFileUid], nodeTree, clipboardData]);

const onDelete = useCallback(() => {
const params: TFileApiPayload = {
Expand Down

0 comments on commit 6cefb40

Please sign in to comment.