Fixed thing

This commit is contained in:
Pünkösd Marcell 2020-12-04 05:11:31 +01:00
parent 5c9ced0423
commit 6c934187e3
1 changed files with 2 additions and 2 deletions

View File

@ -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;