diff options
author | mehekj <mehek.jethani@gmail.com> | 2023-02-09 00:03:40 -0500 |
---|---|---|
committer | mehekj <mehek.jethani@gmail.com> | 2023-02-09 00:03:40 -0500 |
commit | 739fee917e4aa15ff7aef659cc84bfbd3cb48bcf (patch) | |
tree | 96babde1ca9ae32379fabcb29f38360701b42c87 /src/client/views/nodes/KeyValueBox.tsx | |
parent | ca3868b494bfd00c0349424f622bb5010b0e1197 (diff) | |
parent | a8b19694ec902d4094914ba6ddd15e700fab117e (diff) |
Merge branch 'master' into schema-mehek
Diffstat (limited to 'src/client/views/nodes/KeyValueBox.tsx')
-rw-r--r-- | src/client/views/nodes/KeyValueBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/KeyValueBox.tsx b/src/client/views/nodes/KeyValueBox.tsx index 18c5b81ec..60417430f 100644 --- a/src/client/views/nodes/KeyValueBox.tsx +++ b/src/client/views/nodes/KeyValueBox.tsx @@ -66,7 +66,7 @@ export class KeyValueBox extends React.Component<FieldViewProps> { value = eq ? value.substr(1) : value; const dubEq = value.startsWith(':=') ? 'computed' : value.startsWith(';=') ? 'script' : false; value = dubEq ? value.substr(2) : value; - const options: ScriptOptions = { addReturn: true, params: { this: Doc.name, self: Doc.name, _last_: 'any', _readOnly_: 'boolean' }, editable: false }; + const options: ScriptOptions = { addReturn: true, typecheck: false, params: { this: Doc.name, self: Doc.name, _last_: 'any', _readOnly_: 'boolean' }, editable: false }; if (dubEq) options.typecheck = false; const script = CompileScript(value, options); return !script.compiled ? undefined : { script, type: dubEq, onDelegate: eq }; |