avoid resetting method after first save
This commit is contained in:
parent
ab85b8e473
commit
6cdd2ff5c3
|
@ -205,10 +205,10 @@ class CCPMethodEditorController extends HTMLElement{
|
|||
return resp.text()
|
||||
}else throw "Error saving process: " + resp.status
|
||||
}).then(data=>{
|
||||
if(!this.#isupdate){
|
||||
this.resetMethod()
|
||||
}
|
||||
this.unlockRender()
|
||||
if(!this.#isupdate){
|
||||
this.editMethod(this.#current.id)
|
||||
}
|
||||
}).catch(err=>{
|
||||
alert(err)
|
||||
this.unlockRender()
|
||||
|
|
Loading…
Reference in New Issue