From 75274aba538891bbd3554db235b7aace4851afbc Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Tue, 3 Aug 2021 11:58:05 +0200 Subject: fix: set tags to [] if no tags are found --- pages/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/index.tsx b/pages/index.tsx index 9e46f45..b31e533 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -84,7 +84,7 @@ export function GraphPage() { const tagsRef = useRef([]) const updateGraphData = (orgRoamGraphData: OrgRoamGraphReponse) => { - tagsRef.current = orgRoamGraphData.tags + tagsRef.current = orgRoamGraphData.tags ?? [] const nodesByFile = orgRoamGraphData.nodes.reduce((acc, node) => { return { ...acc, -- cgit v1.2.3