Explorar o código

fix: always close manageStation if going from home to station

Kristian Vos %!s(int64=2) %!d(string=hai) anos
pai
achega
d279905222
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      frontend/src/main.js

+ 1 - 2
frontend/src/main.js

@@ -221,8 +221,7 @@ router.beforeEach((to, from, next) => {
 	}
 
 	if (from.name === "home" && to.name === "station") {
-		if (store.state.modalVisibility.modals.manageStation)
-			store.dispatch("modalVisibility/closeModal", "manageStation");
+		store.dispatch("modalVisibility/closeModal", "manageStation");
 	}
 
 	if (ws.socket && to.fullPath !== from.fullPath) {