Skip to content

Commit 6057045

Browse files
committed
refactor: only calling ui functions when on the test page
1 parent ee340f4 commit 6057045

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/ts/test/test-ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ ConfigEvent.subscribe((eventKey, eventValue, nosave) => {
155155
if (eventKey === "theme") void applyBurstHeatmap();
156156

157157
if (eventValue === undefined) return;
158-
if (eventKey === "highlightMode") {
158+
if (eventKey === "highlightMode" && ActivePage.get() === "test") {
159159
highlightMode(eventValue as SharedTypes.Config.HighlightMode);
160160
updateActiveElement();
161161
}

0 commit comments

Comments
 (0)