mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 03:26:22 +00:00
fix: opts being overriden in graph option (#384)
This commit is contained in:
parent
bb93ac1c83
commit
2774e976d2
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue