Ver código fonte

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

Kristian Vos 3 anos atrás
pai
commit
5465d8c135
1 arquivos alterados com 8 adições e 3 exclusões
  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;