diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-05-17 14:07:18 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-05-17 14:07:18 -0400 |
commit | 9f9e119e0040ec858b0c0a11db454b7020eacf42 (patch) | |
tree | d4706592543fb2bd80a57fe944a0e7fc38d01b90 /src | |
parent | 03383387464fe83b57e5a998ee34c0601624a912 (diff) |
added self/this to run of script
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/ScriptingBox.tsx | 2 |
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); }); |