From 901abe58695dbf437249c827d4221336c1409892 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Thu, 16 Nov 2023 13:57:26 +0100 Subject: [PATCH] derivation as query-param --- ccp/js/methodeditorcontroller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccp/js/methodeditorcontroller.js b/ccp/js/methodeditorcontroller.js index c2cbca3..5c1d817 100644 --- a/ccp/js/methodeditorcontroller.js +++ b/ccp/js/methodeditorcontroller.js @@ -289,8 +289,8 @@ class CCPMethodEditorController extends HTMLElement{ cloneMethod(method, derivation){ if(this.#locked) return; this.lockRender() - const op = derivation ? "derive" : "clone" - this.#boot.secureFetch(this.#serviceurl + "/methods/" + method + "/derive").then( + const derive = derivation ? "?derive=true" : "" + this.#boot.secureFetch(this.#serviceurl + "/methods/" + method + "/clone" + derive).then( (resp)=>{ if(resp.status === 200){ return resp.json()