Pārlūkot izejas kodu

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

Kristian Vos 3 gadi atpakaļ
vecāks
revīzija
5465d8c135
1 mainītis faili ar 8 papildinājumiem un 3 dzēšanām
  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;