Commit 354c9dc2 by Mr. Lan

fix bug.

parent 6ed4e84a
Showing with 2 additions and 0 deletions
...@@ -206,6 +206,7 @@ export default { ...@@ -206,6 +206,7 @@ export default {
if (this.previous !== '') { if (this.previous !== '') {
var previousValue = '' var previousValue = ''
const item = this.graph.findById(this.previous[0]) const item = this.graph.findById(this.previous[0])
if (item !== undefined) {
previousValue = { ...item.getModel() } previousValue = { ...item.getModel() }
var err = this.verifyProcess(previousValue) var err = this.verifyProcess(previousValue)
if (err !== '') { if (err !== '') {
...@@ -214,6 +215,7 @@ export default { ...@@ -214,6 +215,7 @@ export default {
return return
} }
} }
}
const item = this.graph.findById(items[0]) const item = this.graph.findById(items[0])
this.selectedModel = { ...item.getModel() } this.selectedModel = { ...item.getModel() }
this.previous = items this.previous = items
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment