fixed priority in graph option
This commit is contained in:
parent
b06b792576
commit
86ca26ff1a
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user