From f53f43f04e4e4fffadff3e278e2e9334afb45598 Mon Sep 17 00:00:00 2001 From: grnd-alt Date: Mon, 8 Jul 2024 11:15:54 +0200 Subject: [PATCH] fix: stop file actions when conflict dialog skipped Signed-off-by: grnd-alt --- apps/files/src/actions/moveOrCopyAction.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/files/src/actions/moveOrCopyAction.ts b/apps/files/src/actions/moveOrCopyAction.ts index 5d3a7afa0e2f1..f4e3c6b29eb66 100644 --- a/apps/files/src/actions/moveOrCopyAction.ts +++ b/apps/files/src/actions/moveOrCopyAction.ts @@ -128,11 +128,8 @@ export const handleCopyMoveNodeTo = async (node: Node, destination: Folder, meth try { // Let the user choose what to do with the conflicting files const { selected, renamed } = await openConflictPicker(destination.path, [node], otherNodes.contents) - // if the user selected to keep the old file, and did not select the new file - // that means they opted to delete the current node + // two empty arrays: either only old files or conflict skipped -> no action required if (!selected.length && !renamed.length) { - await client.deleteFile(currentPath) - emit('files:node:deleted', node) return } } catch (error) {