浏览代码

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

Owen Diffey 3 年之前
父节点
当前提交
85da4e9fe9
共有 1 个文件被更改,包括 4 次插入3 次删除
  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
+						);
 			}
 		});