reset after clone to avoid errors

This commit is contained in:
dcore94 2023-02-06 14:05:08 +01:00
parent b4cc3f40b3
commit 81524de799
1 changed files with 3 additions and 1 deletions

View File

@ -210,7 +210,9 @@ class CCPMethodEditorController extends HTMLElement{
return resp.text() return resp.text()
}else throw "Error saving process: " + resp.status }else throw "Error saving process: " + resp.status
}).then(data=>{ }).then(data=>{
if(!this.#isupdate) this.#isupdate = true; if(!this.#isupdate){
this.resetMethod()
}
this.unlockRender() this.unlockRender()
}).catch(err=>{ }).catch(err=>{
alert(err) alert(err)