diff options
author | bobzel <zzzman@gmail.com> | 2024-10-07 15:14:42 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-10-07 15:14:42 -0400 |
commit | 4364cb0db3988537f6b9485146a16bc15d55e3cc (patch) | |
tree | 48c324cd66b55912585dd506675e156697c58b38 /src/client/views/ScriptingRepl.tsx | |
parent | fbff73033b6c0f9b1214e9013c155ff085e7a737 (diff) | |
parent | 09b722789afa5d7c5edfc701978f17e4745113bc (diff) |
Merge branch 'master' into alyssa-starter
Diffstat (limited to 'src/client/views/ScriptingRepl.tsx')
-rw-r--r-- | src/client/views/ScriptingRepl.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/ScriptingRepl.tsx b/src/client/views/ScriptingRepl.tsx index 2de867746..8ab91a6b5 100644 --- a/src/client/views/ScriptingRepl.tsx +++ b/src/client/views/ScriptingRepl.tsx @@ -1,4 +1,3 @@ -/* eslint-disable react/no-array-index-key */ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { action, makeObservable, observable } from 'mobx'; import { observer } from 'mobx-react'; @@ -182,7 +181,7 @@ export class ScriptingRepl extends ObservableReactComponent<object> { this.maybeScrollToBottom(); return; } - const result = undoable(() => script.run({}, e => this.commands.push({ command: this.commandString, result: e as string })), 'run:' + this.commandString)(); + const result = undoable(() => script.run({}, err => this.commands.push({ command: this.commandString, result: err as string })), 'run:' + this.commandString)(); if (result.success) { this.commands.push({ command: this.commandString, result: result.result }); this.commandsHistory.push(this.commandString); |