From 71f8f420ab5755bac8814ff3f5a96f2f01856b2d Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 24 Mar 2023 15:02:44 -0400 Subject: from last --- src/client/views/nodes/KeyValueBox.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { } 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; -- cgit v1.2.3-70-g09d2