Explorar o código

fix(station card): unfavorite $remove not a function fix

Owen Diffey %!s(int64=6) %!d(string=hai) anos
pai
achega
533cb86fb3
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      frontend/components/pages/Home.vue

+ 2 - 1
frontend/components/pages/Home.vue

@@ -257,7 +257,8 @@ export default {
 				this.favoriteStations.push(stationId);
 			});
 			this.socket.on("event:user.unfavoritedStation", stationId => {
-				this.favoriteStations.$remove(stationId);
+				const station = this.favoriteStations.indexOf(stationId);
+				this.favoriteStations.splice(station, 1);
 			});
 		});
 	},