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