Browse Source

fix: always close manageStation if going from home to station

Kristian Vos 2 năm trước cách đây
mục cha
commit
d279905222
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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) {