From f54298fabbfa03537344d1948a7cdeb13c9978f6 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Fri, 17 Mar 2023 12:24:24 +0100 Subject: [PATCH] fix --- ccp/js/methodeditorcontroller2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccp/js/methodeditorcontroller2.js b/ccp/js/methodeditorcontroller2.js index e7c2e9a..6ad01e1 100644 --- a/ccp/js/methodeditorcontroller2.js +++ b/ccp/js/methodeditorcontroller2.js @@ -890,12 +890,12 @@ class CCPMethodEditorController extends HTMLElement{ } renderScripts(){ - const index = this.#rootdoc.querySelector("select[name=script-selector]") ? this.#rootdoc.querySelector("select[name=script-selector]").selectedIndex : 0 + const val = this.#rootdoc.querySelector("select[name=script-selector]") ? this.#rootdoc.querySelector("select[name=script-selector]").value : 'deploy-script' return this.#current.additionalParameters.parameters.map( (script, i) => { let code = script.value.length ? script.value.join("\r\n") : "" return ` - + ` } ).join("\n")