From dc457bb4a0d66b5efdee5bba294e2d17b9efe2ab Mon Sep 17 00:00:00 2001 From: Matt Godbolt Date: Tue, 20 Dec 2022 07:28:41 -0600 Subject: [PATCH] WIP --- static/panes/tool.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/static/panes/tool.ts b/static/panes/tool.ts index 198a0f52b..3d7809e5f 100644 --- a/static/panes/tool.ts +++ b/static/panes/tool.ts @@ -458,6 +458,7 @@ export class Tool extends MonacoPane { this.toggleUsable(!!foundTool); + // clearly not a ToolInfo, and clearly the result.result wtf? let toolResult: ToolInfo | null = null; // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition if (result && result.tools) { @@ -467,12 +468,9 @@ export class Tool extends MonacoPane { // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition } else if (result && result.result && result.result.tools) { - toolResult = _.find( - result.result.tools, - tool => { - return tool.id === this.toolId; - } - ); + toolResult = _.find(result.result.tools, tool => { + return tool.id === this.toolId; + }); } let toolInfo: ToolInterface | null = null;