diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-10-17 15:31:44 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-10-17 15:31:44 +0200 |
commit | 92f465fbe2dd66576f902b65171da6116e29f1c2 (patch) | |
tree | 8a06a99ac81d12b5078129873442e2b106042ea4 /components/Sidebar/TagBar.tsx | |
parent | 6ed792c982991b679d1c50060f4ca25b2eb1b9ca (diff) | |
parent | fadb97ef52427a6222ab8943c26f89973390690d (diff) |
Merge pull request #121 from org-roam/fix/500
fix(#118): link bugfixes
Diffstat (limited to 'components/Sidebar/TagBar.tsx')
-rw-r--r-- | components/Sidebar/TagBar.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/Sidebar/TagBar.tsx b/components/Sidebar/TagBar.tsx index 0fe0a18..f58fe38 100644 --- a/components/Sidebar/TagBar.tsx +++ b/components/Sidebar/TagBar.tsx @@ -18,12 +18,12 @@ export const TagBar = (props: TagBarProps) => { const { filter, setFilter, tagColors, setTagColors, openContextMenu, previewNode } = props const node = previewNode as OrgRoamNode - if (!node.tags || node?.tags[0] === null) { + if (!node?.tags || node?.tags?.[0] === null) { return null } return ( <Flex mb={2} flexWrap="wrap"> - {node?.tags?.map((tag: string) => { + {node?.tags?.map?.((tag: string) => { const bl: string[] = filter.tagsBlacklist ?? [] const wl: string[] = filter.tagsWhitelist ?? [] const blackList: boolean = bl.includes(tag) |