Skip to content

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

Folder should not be selected with other files after creating it in grid perspective

sytolk3886b37aea9b
diff --git a/src/renderer/hooks/DirectoryContentContextProvider.tsx b/src/renderer/hooks/DirectoryContentContextProvider.tsx
index 7aad08ef1..f8a3f2f81 100644
--- a/src/renderer/hooks/DirectoryContentContextProvider.tsx
+++ b/src/renderer/hooks/DirectoryContentContextProvider.tsx
@@ -470,10 +470,7 @@ export const DirectoryContentContextProvider = ({
action.source !== 'upload' &&
action.source !== 'thumbgen' &&
action.entry &&
- action.entry.path &&
- action.entry.path.indexOf(
- currentLocation?.getDirSeparator() + AppConfig.metaFolder,
- ) === -1
+ !isMeta(action.entry.path)
) {
if (action.action === 'add') {
if (
@@ -482,7 +479,7 @@ export const DirectoryContentContextProvider = ({
) &&
!action.skipSelection
) {
- selected.push(action.entry);
+ selected = [action.entry];
updated = true;
}
} else if (action.action === 'delete') {