Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/core/Editor.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import kebabCase from 'lodash/kebabCase';
import Vue from 'vue';
import Indicator from './Indicator';
import Node from './Node';

Expand Down Expand Up @@ -91,7 +92,10 @@ class Editor {
import(plainNodesData) {
try {
const nodesData = JSON.parse(plainNodesData);
this.nodes = nodesData.map((data) => Node.unserialize(this, data));
this.nodes = [];
Vue.nextTick(() => {
this.nodes = nodesData.map((data) => Node.unserialize(this, data));
});
} catch {
throw new Error('The input is not valid.');
}
Expand Down