Просмотр исходного кода

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

Kristian Vos 3 лет назад
Родитель
Сommit
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;