From 69cc227c87d41afad7ce657299aa285c0d9fbca9 Mon Sep 17 00:00:00 2001 From: Seif Soliman Date: Thu, 8 Jan 2026 18:58:01 +0200 Subject: [PATCH] fix(event-handlers): commandOverride not working due to incorrect check (@byseif21) (#7330) it returns null when attribute doesn't exist, not undefined --- frontend/src/ts/event-handlers/test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/ts/event-handlers/test.ts b/frontend/src/ts/event-handlers/test.ts index f2ee6cf01..a77277f2a 100644 --- a/frontend/src/ts/event-handlers/test.ts +++ b/frontend/src/ts/event-handlers/test.ts @@ -24,7 +24,7 @@ const testPage = qs(".pageTest"); testPage?.onChild("click", "#testModesNotice .textButton", async (event) => { const target = event.childTarget as HTMLElement; const attr = target?.getAttribute("commands"); - if (attr === undefined) return; + if (attr === null) return; Commandline.show({ subgroupOverride: attr as ConfigKey | ListsObjectKeys }); });