aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-03-24 15:02:44 -0400
committerbobzel <zzzman@gmail.com>2023-03-24 15:02:44 -0400
commit71f8f420ab5755bac8814ff3f5a96f2f01856b2d (patch)
tree3edc2896d808db754aec5e3c9aaecae75d00ac12 /src
parenta61f4ea1c25281d6c4f18047db2feb42778d6ee9 (diff)
from last
Diffstat (limited to 'src')
-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 8a5556044..0b1de0ff6 100644
--- a/src/client/views/nodes/KeyValueBox.tsx
+++ b/src/client/views/nodes/KeyValueBox.tsx
@@ -82,7 +82,7 @@ export class KeyValueBox extends React.Component<FieldViewProps> {
} else if (type === 'script') {
field = new ScriptField(script);
} else {
- const res = script.run({ this: target }, console.log);
+ const res = script.run({ this: Doc.Layout(doc), self: doc }, console.log);
if (!res.success) {
target[key] = script.originalScript;
return true;