Browse Source

fix(Home): Station not automatically removed from favorite stations on deletion

Owen Diffey 3 năm trước cách đây
mục cha
commit
85da4e9fe9
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 4 3
      frontend/src/pages/Home.vue

+ 4 - 3
frontend/src/pages/Home.vue

@@ -652,9 +652,10 @@ export default {
 				this.stations.splice(stationIndex, 1);
 
 				if (station.isFavorited)
-					this.orderOfFavoriteStations.filter(
-						favoritedId => favoritedId !== stationId
-					);
+					this.orderOfFavoriteStations =
+						this.orderOfFavoriteStations.filter(
+							favoritedId => favoritedId !== stationId
+						);
 			}
 		});