Quellcode durchsuchen

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

Owen Diffey vor 3 Jahren
Ursprung
Commit
85da4e9fe9
1 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen
  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
+						);
 			}
 		});