Forráskód Böngészése

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

Kristian Vos 3 éve
szülő
commit
5465d8c135
1 módosított fájl, 8 hozzáadás és 3 törlés
  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;