Explorar el Código

fix(Station/Playlists): sometimes liked/disliked playlists wouldn't show up

Kristian Vos hace 3 años
padre
commit
2c0134f415
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      frontend/src/components/AddToPlaylistDropdown.vue

+ 3 - 2
frontend/src/components/AddToPlaylistDropdown.vue

@@ -94,9 +94,10 @@ export default {
 	},
 	mounted() {
 		if (!this.fetchedPlaylists)
-			this.socket.dispatch("playlists.indexMyPlaylists", false, res => {
+			this.socket.dispatch("playlists.indexMyPlaylists", true, res => {
 				if (res.status === "success")
-					this.setPlaylists(res.data.playlists);
+					if (!this.fetchedPlaylists)
+						this.setPlaylists(res.data.playlists);
 			});
 
 		this.socket.on(