From aac26a14983a1c1d5c85a3542648c5b0df8df207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sim=C3=B3=20Albert=20i=20Beltran?= Date: Fri, 24 Jul 2026 18:47:34 +0200 Subject: [PATCH] fix: switch to correct map when clicking 'My maps' sidebar entry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without an emits declaration, Vue 3 treats @click on AppNavigationMyMapItem as a native DOM event listener, causing a raw MouseEvent to reach loadMap instead of the myMap object. Signed-off-by: Simó Albert i Beltran --- src/components/AppNavigationMyMapItem.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/AppNavigationMyMapItem.vue b/src/components/AppNavigationMyMapItem.vue index 6476e109e..1354c993a 100644 --- a/src/components/AppNavigationMyMapItem.vue +++ b/src/components/AppNavigationMyMapItem.vue @@ -81,6 +81,8 @@ export default { }, }, + emits: ['click', 'color', 'rename', 'share', 'delete'], + data() { return { }