From f99c3fd0cddcfd2bb8aa0430cabee7f950b306f8 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Fri, 29 Oct 2021 13:09:58 -0400 Subject: [PATCH] dont double log --- src/ui/React/LogBoxManager.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/React/LogBoxManager.tsx b/src/ui/React/LogBoxManager.tsx index 78f89265f..68814eea6 100644 --- a/src/ui/React/LogBoxManager.tsx +++ b/src/ui/React/LogBoxManager.tsx @@ -27,6 +27,7 @@ export function LogBoxManager(): React.ReactElement { () => LogBoxEvents.subscribe((script: RunningScript) => { const id = script.server + "-" + script.filename + script.args.map((x: any): string => `${x}`).join("-"); + if (logs.find((l) => l.id === id)) return; setLogs((old) => { return [ ...old,