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
);
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,