From 645b8be6da7061da0f4afd2d5f71dc6c5f06ac51 Mon Sep 17 00:00:00 2001 From: Spythere Date: Sat, 21 Aug 2021 21:19:02 +0200 Subject: [PATCH] =?UTF-8?q?Bug=20fix:=20kompatybilno=C5=9B=C4=87=20replace?= =?UTF-8?q?All?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/SceneryView.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/views/SceneryView.vue b/src/views/SceneryView.vue index cd0983a..47c1a52 100644 --- a/src/views/SceneryView.vue +++ b/src/views/SceneryView.vue @@ -57,15 +57,13 @@ export default defineComponent({ () => data.value.dataConnectionStatus === DataStatus.Loaded ); - const stationInfo = computed(() => { - if (!route.query.station) return; - - return data.value.stationList.find( + const stationInfo = computed(() => + data.value.stationList.find( (station) => station.stationName === - route.query.station?.toString().replaceAll("_", " ") - ); - }); + route.query.station?.toString().replace(/_/g, " ") + ) + ); return { data,