diff options
author | bobzel <zzzman@gmail.com> | 2024-10-04 21:51:25 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-10-04 21:51:25 -0400 |
commit | 2012b3ade1d4644115e3a59cf0a1deec07e23637 (patch) | |
tree | 1f7de3166632553fc19a4b0654d9640522bb86b8 /src/client/views/ScriptingRepl.tsx | |
parent | 695a757e1d5d3469a9871b0760c9dedeb073a489 (diff) |
from last
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..e413c13e2 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 })), 'run:' + this.commandString)(); if (result.success) { this.commands.push({ command: this.commandString, result: result.result }); this.commandsHistory.push(this.commandString); |