diff options
author | bobzel <zzzman@gmail.com> | 2024-03-13 09:43:06 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-03-13 09:43:06 -0400 |
commit | 836703c11b6e327286ef6611af35759b8c76695e (patch) | |
tree | 71bdecebae53027fbe18f067be46d9eb662d4387 /src/client/views/nodes/KeyValueBox.tsx | |
parent | a8119d13d78a12c4b3178510b8648168a870b53d (diff) | |
parent | 641220e9cd9626af182118f84f8f775d7638cc67 (diff) |
Merge branch 'master' into info-ui-observable
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 39a45693e..89a5ac0b8 100644 --- a/src/client/views/nodes/KeyValueBox.tsx +++ b/src/client/views/nodes/KeyValueBox.tsx @@ -76,7 +76,7 @@ export class KeyValueBox extends ObservableReactComponent<FieldViewProps> { value = eq ? value.substring(1) : value; const dubEq = value.startsWith(':=') ? 'computed' : value.startsWith('$=') ? 'script' : false; value = dubEq ? value.substring(2) : value; - const options: ScriptOptions = { addReturn: true, typecheck: false, params: { this: Doc.name, self: Doc.name, _last_: 'any', _readOnly_: 'boolean' }, editable: true }; + const options: ScriptOptions = { addReturn: true, typecheck: false, params: { this: Doc.name, self: Doc.name, documentView: 'any', _last_: 'any', _readOnly_: 'boolean' }, editable: true }; if (dubEq) options.typecheck = false; const script = CompileScript(value, { ...options, transformer: DocumentIconContainer.getTransformer() }); return !script.compiled ? undefined : { script, type: dubEq, onDelegate: eq }; |