diff options
author | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-06-06 12:48:25 -0500 |
---|---|---|
committer | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-06-06 12:48:25 -0500 |
commit | 4ac63cedfdfd33b47c97e7cc8be60ec9b5490a3e (patch) | |
tree | 8ff1c4a751cade6983ab1c3d2823b22ef57702cf /src/client/views/nodes/ScriptingBox.tsx | |
parent | cb87bab7ea67aa384a3183890ea413965e020047 (diff) |
changing { to ( and adding ,
Diffstat (limited to 'src/client/views/nodes/ScriptingBox.tsx')
-rw-r--r-- | src/client/views/nodes/ScriptingBox.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/views/nodes/ScriptingBox.tsx b/src/client/views/nodes/ScriptingBox.tsx index 071a990a3..f44f4fdad 100644 --- a/src/client/views/nodes/ScriptingBox.tsx +++ b/src/client/views/nodes/ScriptingBox.tsx @@ -524,6 +524,11 @@ export class ScriptingBox extends ViewBoxAnnotatableComponent<FieldViewProps, Sc const splitEntered = enteredParams.split(","); const numEntered = splitEntered.length; + parameters.forEach((element: string, i: number) => { + if (i !== parameters.length - 1) { + parameters[i] = element + ","; + } + }); console.log("numEntered: " + numEntered); |