From dcaf09b658229581e8394beca04b5da949544e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=BE=E6=B5=A6=20=E7=9F=A5=E4=B9=9F=20Matsuura=20Tomoy?= =?UTF-8?q?a?= Date: Tue, 22 Aug 2023 00:45:47 +0900 Subject: [PATCH] fix: opts being overriden in graph option (#384) --- quartz/components/Graph.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quartz/components/Graph.tsx b/quartz/components/Graph.tsx index d8ec6e55..0c54bdb4 100644 --- a/quartz/components/Graph.tsx +++ b/quartz/components/Graph.tsx @@ -47,8 +47,8 @@ const defaultOptions: GraphOptions = { export default ((opts?: GraphOptions) => { function Graph() { - const localGraph = { ...opts?.localGraph, ...defaultOptions.localGraph } - const globalGraph = { ...opts?.globalGraph, ...defaultOptions.globalGraph } + const localGraph = { ...defaultOptions.localGraph, ...opts?.localGraph, } + const globalGraph = { ...defaultOptions.globalGraph, ...opts?.globalGraph, } return (

Graph View