summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pages/index.tsx2
1 files changed, 1 insertions, 1 deletions
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<Tags>([])
const updateGraphData = (orgRoamGraphData: OrgRoamGraphReponse) => {
- tagsRef.current = orgRoamGraphData.tags
+ tagsRef.current = orgRoamGraphData.tags ?? []
const nodesByFile = orgRoamGraphData.nodes.reduce<NodesByFile>((acc, node) => {
return {
...acc,