TagSpaces is an offline, open source, document manager with tagging support
chore: fix issue with crashing list perspective
Ilian Sapundshiev08185dd14385
diff --git a/src/renderer/perspectives/list/components/RowCell.tsx b/src/renderer/perspectives/list/components/RowCell.tsxindex 2df9437b5..79eebeb3e 100644--- a/src/renderer/perspectives/list/components/RowCell.tsx+++ b/src/renderer/perspectives/list/components/RowCell.tsx@@ -198,7 +198,7 @@ function RowCell(props: Props) {const renderTags = useMemo(() => {let sideCarLength = 0;return entryTags.map((tag: TS.Tag, index) => {- const tagContainer = currentLocation.isReadOnly ? (+ const tagContainer = currentLocation?.isReadOnly ? (<TagContainertag={tag}key={entryPath + tag.title}@@ -224,7 +224,7 @@ function RowCell(props: Props) {}return tagContainer;});- }, [entryTags, currentLocation.isReadOnly, reorderTags, entryPath]);+ }, [entryTags, currentLocation?.isReadOnly, reorderTags, entryPath]);function generateExtension() {return selectionMode ? (