Skip to content

Commit 7b4a62c

Browse files
committed
Clear url + selected file path + refresh workspace upon discarding file on conflict
1 parent 8c775a1 commit 7b4a62c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/routes/workspaces/[workspaceId]/+page.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,9 @@
10261026
if (value.action === 'discard') {
10271027
if ($activeDocumentPath === path) {
10281028
activeDocument.close();
1029+
selectedFilePath = null;
1030+
confirmAndNavigate(null);
1031+
refreshWorkspaceContents();
10291032
}
10301033
return false;
10311034
}

0 commit comments

Comments
 (0)