From 6cdd2ff5c3fd6f1ffd0d33105685ab152a762c6a Mon Sep 17 00:00:00 2001 From: dcore94 Date: Wed, 21 Jun 2023 15:10:57 +0200 Subject: [PATCH] avoid resetting method after first save --- ccp/js/methodeditorcontroller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ccp/js/methodeditorcontroller.js b/ccp/js/methodeditorcontroller.js index a2970ef..b340c0a 100644 --- a/ccp/js/methodeditorcontroller.js +++ b/ccp/js/methodeditorcontroller.js @@ -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()