소스 검색

fix(ManageStation): fixed issue where reopening a managestation modal wouldn't work

Kristian Vos 3 년 전
부모
커밋
5465d8c135
1개의 변경된 파일8개의 추가작업 그리고 3개의 파일을 삭제
  1. 8 3
      frontend/src/store/modules/modals/manageStation.js

+ 8 - 3
frontend/src/store/modules/modals/manageStation.js

@@ -52,9 +52,14 @@ export default {
 			);
 		},
 		clearStation(state) {
-			state.originalStation = null;
-			state.station = null;
-			state.songsList = null;
+			state.originalStation = {};
+			state.station = {};
+			state.stationPlaylist = { songs: [] };
+			state.includedPlaylists = [];
+			state.excludedPlaylists = [];
+			state.songsList = [];
+			state.stationPaused = true;
+			state.currentSong = {};
 		},
 		updateSongsList(state, songsList) {
 			state.songsList = songsList;