From 0964473b064d75df8ef88db3fb63d592dac4e11e Mon Sep 17 00:00:00 2001 From: burnettk Date: Wed, 15 Jun 2022 18:41:20 -0400 Subject: [PATCH] whenever the text changes in the model update the script text in memory, updating size --- src/routes/ProcessModelEditDiagram.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/routes/ProcessModelEditDiagram.js b/src/routes/ProcessModelEditDiagram.js index f493ff2..b4f8e5e 100644 --- a/src/routes/ProcessModelEditDiagram.js +++ b/src/routes/ProcessModelEditDiagram.js @@ -148,33 +148,27 @@ export default function ProcessModelEditDiagram() { }); const handleEditorChange = ((value, event) => { setScriptText(value); - }); - const handleScriptEditorSave = ((value, event) => { modeling.updateProperties(scriptElement, { scriptFormat: "python", - script: scriptText + script: value }); - setShowScriptEditor(false); }); const scriptEditor = (() => { return ( - + Script -