From 60570459cb87bfa078238f8d46339f4bac3cb64e Mon Sep 17 00:00:00 2001 From: Miodec Date: Tue, 11 Jun 2024 00:12:27 +0200 Subject: [PATCH] refactor: only calling ui functions when on the test page --- frontend/src/ts/test/test-ui.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/ts/test/test-ui.ts b/frontend/src/ts/test/test-ui.ts index 0a40ab8eb..20337ae21 100644 --- a/frontend/src/ts/test/test-ui.ts +++ b/frontend/src/ts/test/test-ui.ts @@ -155,7 +155,7 @@ ConfigEvent.subscribe((eventKey, eventValue, nosave) => { if (eventKey === "theme") void applyBurstHeatmap(); if (eventValue === undefined) return; - if (eventKey === "highlightMode") { + if (eventKey === "highlightMode" && ActivePage.get() === "test") { highlightMode(eventValue as SharedTypes.Config.HighlightMode); updateActiveElement(); }