Skip to content

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

fix exception by not existing date for entry properties

Ilian Sapundshiev83430a46cb93
diff --git a/app/components/EntryProperties.js b/app/components/EntryProperties.js
index 9da5f0e23..a2e22f3d3 100644
--- a/app/components/EntryProperties.js
+++ b/app/components/EntryProperties.js
@@ -243,11 +243,11 @@ class EntryProperties extends Component<Props, State> {
path: entryProps.path,
size: entryProps.size,
tags: entryProps.tags,
- ldtm: new Date(entryProps.lmdt)
+ ldtm: entryProps.lmdt ? new Date(entryProps.lmdt)
.toISOString()
.substring(0, 19)
.split('T')
- .join(' '),
+ .join(' ') : '',
color: entryProps.color,
isFile: entryProps.isFile,
description: entryProps.description ? entryProps.description : ''