Skip to content

Commit

Permalink
Merge pull request #12 from devklick/dev
Browse files Browse the repository at this point in the history
Remove favorite when folder deleted
  • Loading branch information
devklick authored Oct 22, 2023
2 parents 87b1b4d + 0e8a6ab commit ffdca8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stores/localFS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ export const useLocalFS = create<LocalFSState>()(
fsObject
) => {
delete parentDirectory.contents[fsObject.name];
get().removeFromFavorites(fsObject.path);
set({ root: get().root });
};

Expand Down

0 comments on commit ffdca8e

Please sign in to comment.