mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Bug fix: kompatybilność replaceAll
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user