Fixed thing
This commit is contained in:
parent
5c9ced0423
commit
6c934187e3
@ -91,7 +91,7 @@
|
||||
<script>
|
||||
|
||||
import SimpleFlowchart from '@/simple-flowchart';
|
||||
import maxBy from 'lodash';
|
||||
import {maxBy} from 'lodash';
|
||||
|
||||
export default {
|
||||
name: 'Dashboard',
|
||||
@ -169,7 +169,7 @@ export default {
|
||||
break;
|
||||
}
|
||||
|
||||
const max_id = maxBy(this.diagram.nodes, (o) => {o.id})
|
||||
const max_id = maxBy(this.diagram.nodes, 'id').id
|
||||
|
||||
newNode.id = max_id + 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user