From 1d43d1bd652d027bd7fc219c27ace1e891a5ae02 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Sat, 16 Oct 2021 16:38:51 +0200 Subject: [PATCH] chore: simplify MENU_ACTIVE mutation --- src/components/home/navigation.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/home/navigation.vue b/src/components/home/navigation.vue index 2476f470..1b3d54dc 100644 --- a/src/components/home/navigation.vue +++ b/src/components/home/navigation.vue @@ -228,11 +228,7 @@ export default { }, resize() { // Hide the menu by default on mobile - if (window.innerWidth < 770) { - this.$store.commit(MENU_ACTIVE, false) - } else { - this.$store.commit(MENU_ACTIVE, true) - } + this.$store.commit(MENU_ACTIVE, window.innerWidth >= 770) }, toggleLists(namespaceId) { this.listsVisible[namespaceId] = !this.listsVisible[namespaceId]