Skip to content

Commit 0e8a6ab

Browse files
committed
Remove favorite when folder deleted
1 parent 67d5bce commit 0e8a6ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/stores/localFS.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ export const useLocalFS = create<LocalFSState>()(
265265
fsObject
266266
) => {
267267
delete parentDirectory.contents[fsObject.name];
268+
get().removeFromFavorites(fsObject.path);
268269
set({ root: get().root });
269270
};
270271

0 commit comments

Comments
 (0)