aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-03-24 14:59:53 -0400
committerbobzel <zzzman@gmail.com>2023-03-24 14:59:53 -0400
commita61f4ea1c25281d6c4f18047db2feb42778d6ee9 (patch)
tree4cd65c47f6441c0300c29b547265ad0fe4c029bb /src
parent3a3e496dda5f9a1f5286a2c9f62524de59794ade (diff)
fixed key value to allow strings to be entered without quotes
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/KeyValueBox.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/nodes/KeyValueBox.tsx b/src/client/views/nodes/KeyValueBox.tsx
index 9f9d93a82..8a5556044 100644
--- a/src/client/views/nodes/KeyValueBox.tsx
+++ b/src/client/views/nodes/KeyValueBox.tsx
@@ -83,7 +83,10 @@ export class KeyValueBox extends React.Component<FieldViewProps> {
field = new ScriptField(script);
} else {
const res = script.run({ this: target }, console.log);
- if (!res.success) return false;
+ if (!res.success) {
+ target[key] = script.originalScript;
+ return true;
+ }
field = res.result;
}
if (Field.IsField(field, true)) {