소스 검색

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) {