diff options
| author | bobzel <zzzman@gmail.com> | 2023-03-24 15:02:44 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-03-24 15:02:44 -0400 |
| commit | 71f8f420ab5755bac8814ff3f5a96f2f01856b2d (patch) | |
| tree | 3edc2896d808db754aec5e3c9aaecae75d00ac12 /src | |
| parent | a61f4ea1c25281d6c4f18047db2feb42778d6ee9 (diff) | |
from last
Diffstat (limited to 'src')
| -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 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; |
