aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-05-17 14:07:18 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-05-17 14:07:18 -0400
commit9f9e119e0040ec858b0c0a11db454b7020eacf42 (patch)
treed4706592543fb2bd80a57fe944a0e7fc38d01b90 /src
parent03383387464fe83b57e5a998ee34c0601624a912 (diff)
added self/this to run of script
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/ScriptingBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/ScriptingBox.tsx b/src/client/views/nodes/ScriptingBox.tsx
index 62af1176f..d274398b5 100644
--- a/src/client/views/nodes/ScriptingBox.tsx
+++ b/src/client/views/nodes/ScriptingBox.tsx
@@ -120,7 +120,7 @@ export class ScriptingBox extends ViewBoxAnnotatableComponent<FieldViewProps, Sc
this._errorMessage = "";
if (result.compiled) {
// this automatically saves
- result.run({}, (err: any) => {
+ result.run({ self: this.rootDoc, this: this.layoutDoc }, (err: any) => {
this._errorMessage = "";
this.onError(err);
});