TagSpaces is an offline, open source, document manager with tagging support
e2e fixes TST4915 fix board thumbnail on web
Stanimira06faced77b0
diff --git a/src/renderer/components/menus/DirectoryMenu.tsx b/src/renderer/components/menus/DirectoryMenu.tsxindex 600692bba..6a3ed3587 100644--- a/src/renderer/components/menus/DirectoryMenu.tsx+++ b/src/renderer/components/menus/DirectoryMenu.tsx@@ -279,7 +279,7 @@ Do you want to continue?`)return true;}).catch((err) => {- console.log('Error importing tags: ' + err);+ console.log('Error importing tags: ' + directoryPath, err);openProgressDialog();});} else {diff --git a/src/renderer/components/menus/FileMenu.tsx b/src/renderer/components/menus/FileMenu.tsxindex 7d06f945b..5d858ff9c 100644--- a/src/renderer/components/menus/FileMenu.tsx+++ b/src/renderer/components/menus/FileMenu.tsx@@ -196,16 +196,14 @@ function FileMenu(props: Props) {onClose();setFolderThumbnailPromise(lastSelectedEntry.path).then((thumbPath: string) => {- const entry: TS.FileSystemEntry = currentLocation.toFsEntry(- extractContainingDirectoryPath(- lastSelectedEntry.path,- currentLocation?.getDirSeparator(),- ),- false,- );- setThumbnailImageChange({- ...entry,- meta: { id: entry.uuid, thumbPath },+ getAllPropertiesPromise(+ extractContainingDirectoryPath(lastSelectedEntry.path),+ lastSelectedEntry.locationID,+ ).then((dirEntry) => {+ setThumbnailImageChange({+ ...dirEntry,+ meta: { ...dirEntry.meta, thumbPath },+ });});//showNotification('Thumbnail created: ' + thumbPath);return true;