Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix Removing tags from folder not reflected in the perspective

sytolk59eeeae372e3
diff --git a/src/renderer/hooks/DirectoryContentContextProvider.tsx b/src/renderer/hooks/DirectoryContentContextProvider.tsx
index 5aa3b1bc9..ba733d976 100644
--- a/src/renderer/hooks/DirectoryContentContextProvider.tsx
+++ b/src/renderer/hooks/DirectoryContentContextProvider.tsx
@@ -364,8 +364,9 @@ export const DirectoryContentContextProvider = ({
cleanTrailingDirSeparator(action.entry.path)
) {
directoryMeta.current = {
- ...(directoryMeta.current && directoryMeta.current),
- ...(action.entry.meta && action.entry.meta),
+ ...directoryMeta.current,
+ ...action.entry.meta,
+ tags: action.entry.meta?.tags || [],
};
}
} else if (action.action === 'move') {