From 3f7fc30ce2c47c86df971120c64e76cd4e77a188 Mon Sep 17 00:00:00 2001 From: E44 <129310925+programmer-44@users.noreply.github.com> Date: Sat, 3 Jan 2026 15:15:05 +0100 Subject: [PATCH] fix(control): remove empty menu object on every button --- control/frontend/src/lib/components/Button.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/frontend/src/lib/components/Button.svelte b/control/frontend/src/lib/components/Button.svelte index 141e856..1257421 100644 --- a/control/frontend/src/lib/components/Button.svelte +++ b/control/frontend/src/lib/components/Button.svelte @@ -35,7 +35,7 @@ let position_bottom = $state(true); function onclick(e: MouseEvent) { - if (menu_options !== null) { + if (menu_options.length !== 0) { if (menu_shown) { close_menu(); } else {