Procházet zdrojové kódy

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

Owen Diffey před 3 roky
rodič
revize
85da4e9fe9
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  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
+						);
 			}
 		});