TagSpaces is an offline, open source, document manager with tagging support
fix: crash by importing files
Ilian Sapundshiev5cdcdf6c11de
diff --git a/app/perspectives/grid-perspective/components/CellContent.tsx b/app/perspectives/grid-perspective/components/CellContent.tsxindex 2f85a4d2b..75949e931 100644--- a/app/perspectives/grid-perspective/components/CellContent.tsx+++ b/app/perspectives/grid-perspective/components/CellContent.tsx@@ -104,9 +104,10 @@ const CellContent = (props: Props) => {PlatformIO.getDirSeparator());- const sideCarTagsTitles = fsEntry.tags.map(tag => tag.title);+ const fsEntryTags = fsEntry.tags ? fsEntry.tags : [];+ const sideCarTagsTitles = fsEntryTags.map(tag => tag.title);const entryTags = [- ...fsEntry.tags,+ ...fsEntryTags,...fileNameTags.filter(tag => !sideCarTagsTitles.includes(tag.title))];