diff --git a/src/stores/localFS.ts b/src/stores/localFS.ts index 876d433..995c038 100644 --- a/src/stores/localFS.ts +++ b/src/stores/localFS.ts @@ -265,6 +265,7 @@ export const useLocalFS = create()( fsObject ) => { delete parentDirectory.contents[fsObject.name]; + get().removeFromFavorites(fsObject.path); set({ root: get().root }); };