TagSpaces is an offline, open source, document manager with tagging support
Index create for s3 location in the app does not show thumbnails (#1540)
Stanimir3f9457c91c27
diff --git a/app/reducers/location-index.ts b/app/reducers/location-index.tsindex 3fbc3762d..91043774e 100644--- a/app/reducers/location-index.ts+++ b/app/reducers/location-index.ts@@ -23,7 +23,8 @@ import {extractFileExtension,extractFileName,extractTagsAsObjects,- getLocationPath+ getLocationPath,+ getThumbFileLocationForFile} from '-/utils/paths';import Search from '../services/search';import { actions as AppActions } from './app';@@ -422,18 +423,25 @@ export const actions = {searchResults.forEach((entry: TS.FileSystemEntry) => {if (entry.thumbPath &&- entry.thumbPath.length > 1 &&- !entry.thumbPath.startsWith('http')+ entry.thumbPath.length > 1 // &&+ // !entry.thumbPath.startsWith('http')) {- let pathInLocation = '';+ /* let pathInLocation = '';if (currentLocation.path) {- pathInLocation = currentLocation.path;- if (!pathInLocation.endsWith('/')) {- pathInLocation += '/';- }- }+ /!* const pathLocationArr = currentLocation.path+ .split('/')+ .filter(el => el); *!/+ const pathArr = entry.path+ .split('/')+ .filter(el => el);+ pathInLocation = pathArr.join('/');+ // pathLocationArr.join('/') + '/' + pathArr.join('/');+ } else {+ pathInLocation = entry.thumbPath;+ } */+ // eslint-disable-next-line no-param-reassignentry.thumbPath = PlatformIO.getURLforPath(- pathInLocation + entry.thumbPath+ getThumbFileLocationForFile(entry.path, '/'));}});