瀏覽代碼

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

Kristian Vos 3 年之前
父節點
當前提交
2c0134f415
共有 1 個文件被更改,包括 3 次插入2 次删除
  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(