aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/KeyValueBox.tsx
diff options
context:
space:
mode:
authorgeireann <geireann.lindfield@gmail.com>2024-10-13 16:24:17 -0400
committergeireann <geireann.lindfield@gmail.com>2024-10-13 16:24:17 -0400
commita60c12ddef3db4123dffb2c91b446d20633f523a (patch)
tree1504784fa7a9f3757f884983ba3026bfb51ab62d /src/client/views/nodes/KeyValueBox.tsx
parent645baa8d0c59fe575f8b41060126750aa3311391 (diff)
fixes to scripting to generate errors to allow schema view to enter strings that conflict with function names.
Diffstat (limited to 'src/client/views/nodes/KeyValueBox.tsx')
-rw-r--r--src/client/views/nodes/KeyValueBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/KeyValueBox.tsx b/src/client/views/nodes/KeyValueBox.tsx
index 3daacc9bb..40c687b7e 100644
--- a/src/client/views/nodes/KeyValueBox.tsx
+++ b/src/client/views/nodes/KeyValueBox.tsx
@@ -114,7 +114,7 @@ export class KeyValueBox extends ViewBoxBaseComponent<FieldViewProps>() {
if (key) target[key] = script.originalScript;
return false;
}
- field === undefined && (field = res.result instanceof Array ? new List<FieldType>(res.result) : (res.result as FieldType));
+ field === undefined && (field = res.result instanceof Array ? new List<FieldType>(res.result) : (typeof res.result === 'function' ? res.result.name : res.result as FieldType));
}
}
if (!key) return false;