Преглед на файлове

fix: always close manageStation if going from home to station

Kristian Vos преди 2 години
родител
ревизия
d279905222
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  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) {