diff --git a/ccp/js/methodeditorcontroller.js b/ccp/js/methodeditorcontroller.js index 2f99d5d..567107f 100644 --- a/ccp/js/methodeditorcontroller.js +++ b/ccp/js/methodeditorcontroller.js @@ -210,7 +210,9 @@ class CCPMethodEditorController extends HTMLElement{ return resp.text() }else throw "Error saving process: " + resp.status }).then(data=>{ - if(!this.#isupdate) this.#isupdate = true; + if(!this.#isupdate){ + this.resetMethod() + } this.unlockRender() }).catch(err=>{ alert(err)