TagSpaces is an offline, open source, document manager with tagging support
fix: Error opening dir properties on s3 location
sytolk331838817846
diff --git a/app/components/EntryProperties.tsx b/app/components/EntryProperties.tsxindex a2dfc8558..9476ab5de 100644--- a/app/components/EntryProperties.tsx+++ b/app/components/EntryProperties.tsx@@ -263,17 +263,13 @@ function EntryProperties(props: Props) {useEffect(() => {if (!currentEntry.current.isFile) {- try {- PlatformIO.getDirProperties(currentEntry.current.path).then(- (dProps: TS.DirProp) => {- dirProps.current = dProps;- currentEntry.current.size = dProps.totalSize;- forceUpdate();- }- );- } catch (ex) {- console.debug('getDirProperties:', ex);- }+ PlatformIO.getDirProperties(currentEntry.current.path)+ .then((dProps: TS.DirProp) => {+ dirProps.current = dProps;+ currentEntry.current.size = dProps.totalSize;+ forceUpdate();+ })+ .catch(ex => console.debug('getDirProperties:', ex.message));}}, []);