From 81524de799f72a54f4dde45fd12ada517e599f88 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Mon, 6 Feb 2023 14:05:08 +0100 Subject: [PATCH] reset after clone to avoid errors --- ccp/js/methodeditorcontroller.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)