Skip to content

Commit ffdca8e

Browse files
authored
Merge pull request #12 from devklick/dev
Remove favorite when folder deleted
2 parents 87b1b4d + 0e8a6ab commit ffdca8e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)