fixed priority in graph option

This commit is contained in:
Tomoya Matsuura(MacBookPro) 2023-08-21 19:52:57 +09:00
parent 00a89caae3
commit 39158a2ef6

View File

@ -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 (
<div class="graph">
<h3>Graph View</h3>