diff options
Diffstat (limited to 'src/client/views/nodes/ScriptingBox.tsx')
-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); }); |