Bug fix: kompatybilność replaceAll

This commit is contained in:
2021-08-21 21:19:02 +02:00
parent 945fee5519
commit 645b8be6da
+5 -7
View File
@@ -57,15 +57,13 @@ export default defineComponent({
() => data.value.dataConnectionStatus === DataStatus.Loaded () => data.value.dataConnectionStatus === DataStatus.Loaded
); );
const stationInfo = computed(() => { const stationInfo = computed(() =>
if (!route.query.station) return; data.value.stationList.find(
return data.value.stationList.find(
(station) => (station) =>
station.stationName === station.stationName ===
route.query.station?.toString().replaceAll("_", " ") route.query.station?.toString().replace(/_/g, " ")
); )
}); );
return { return {
data, data,