diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-04-09 02:43:50 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-04-09 02:43:50 -0400 |
commit | d165aad7c31395db6cff8d5029e4638534f609e3 (patch) | |
tree | 9b7ba8efc81aec470d1d1e27783dcfb0a21eff94 /src | |
parent | df170f53e2c88bd77a552e42b2eba5470b15cb03 (diff) |
from last
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/ScriptingBox.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/nodes/ScriptingBox.tsx b/src/client/views/nodes/ScriptingBox.tsx index 93956592f..f930c6692 100644 --- a/src/client/views/nodes/ScriptingBox.tsx +++ b/src/client/views/nodes/ScriptingBox.tsx @@ -46,9 +46,8 @@ export class ScriptingBox extends DocAnnotatableComponent<FieldViewProps, Script transformer: DocumentIconContainer.getTransformer(), params }); - this.dataDoc[this.props.fieldKey] = result.compiled ? new ScriptField(result) : undefined; this._errorMessage = isCompileError(result) ? result.errors.map(e => e.messageText).join("\n") : ""; - return ScriptCast(this.dataDoc[this.props.fieldKey]); + return this.dataDoc[this.props.fieldKey] = result.compiled ? new ScriptField(result) : undefined; } @action |