Bladeren bron

fix(Station): changing station type and then closing ManageStation would add undefined to songsList

Kristian Vos 3 jaren geleden
bovenliggende
commit
f84b2d38c4

+ 0 - 1
frontend/src/components/modals/ManageStation/index.vue

@@ -551,7 +551,6 @@ export default {
 			() => {}
 		);
 
-		this.repositionSongInList([]);
 		this.clearStation();
 		this.showTab("settings");
 	},

+ 1 - 0
frontend/src/store/modules/modals/manageStation.js

@@ -54,6 +54,7 @@ export default {
 		clearStation(state) {
 			state.originalStation = null;
 			state.station = null;
+			state.songsList = null;
 		},
 		updateSongsList(state, songsList) {
 			state.songsList = songsList;