fixed priority in graph option
This commit is contained in:
		@@ -47,8 +47,8 @@ const defaultOptions: GraphOptions = {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export default ((opts?: GraphOptions) => {
 | 
					export default ((opts?: GraphOptions) => {
 | 
				
			||||||
  function Graph() {
 | 
					  function Graph() {
 | 
				
			||||||
    const localGraph = { ...opts?.localGraph, ...defaultOptions.localGraph }
 | 
					    const localGraph = { ...defaultOptions.localGraph, ...opts?.localGraph, }
 | 
				
			||||||
    const globalGraph = { ...opts?.globalGraph, ...defaultOptions.globalGraph }
 | 
					    const globalGraph = { ...defaultOptions.globalGraph, ...opts?.globalGraph, }
 | 
				
			||||||
    return (
 | 
					    return (
 | 
				
			||||||
      <div class="graph">
 | 
					      <div class="graph">
 | 
				
			||||||
        <h3>Graph View</h3>
 | 
					        <h3>Graph View</h3>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user