فهرست منبع

Minor temporary fix

Owen Diffey 4 سال پیش
والد
کامیت
d6730cea91

+ 1 - 1
frontend/src/components/modals/ManageStation/Tabs/Playlists.vue

@@ -187,7 +187,7 @@ export default {
 	},
 	mounted() {
 		this.socket.dispatch("playlists.indexMyPlaylists", true, res => {
-			if (res.status === "success") this.playlists = res.data.playlists;
+			if (res.status === "success") this.playlists = res.data;
 			this.orderOfPlaylists = this.calculatePlaylistOrder(); // order in regards to the database
 		});
 

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

@@ -112,7 +112,7 @@ export default {
 	mounted() {
 		this.socket.dispatch(`stations.getStationById`, this.stationId, res => {
 			if (res.status === "success") {
-				const { station } = res.data;
+				const { station } = res;
 				this.editStation(station);
 			} else {
 				new Toast(`Station with that ID not found${this.stationId}`);