Skip to content

Commit

Permalink
stop file actions when conflict dialog skipped
Browse files Browse the repository at this point in the history
Signed-off-by: grnd-alt <salimbelakkaf@outlook.de>
  • Loading branch information
grnd-alt committed Jul 8, 2024
1 parent b94a1f7 commit 7da9782
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/files/src/actions/moveOrCopyAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ export const handleCopyMoveNodeTo = async (node: Node, destination: Folder, meth
if (hasConflict([node], otherNodes.contents)) {
try {
// Let the user choose what to do with the conflicting files
const { selected, renamed } = await openConflictPicker(destination.path, [node], otherNodes.contents)
const { selected, renamed, skipped } = await openConflictPicker(destination.path, [node], otherNodes.contents)
if (skipped) {
return
}
// 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
if (!selected.length && !renamed.length) {
Expand Down

0 comments on commit 7da9782

Please sign in to comment.