fix: resolve SGS hall fallback floor typing

This commit is contained in:
lyf
2026-06-30 01:17:03 +08:00
parent f88fed0d04
commit 1d71dbc1f3

View File

@@ -473,9 +473,7 @@ export const toMuseumHallPoisFromSgs = (
const fallbackFloorIdForPoi = stringifyId(matchedSpace?.floorId) || entrance.floorId || fallbackFloorId const fallbackFloorIdForPoi = stringifyId(matchedSpace?.floorId) || entrance.floorId || fallbackFloorId
const fallbackFloorLabel = floorLabelForSgs( const fallbackFloorLabel = floorLabelForSgs(
fallbackFloorIdForPoi, fallbackFloorIdForPoi,
floors, floors
matchedSpace?.floorCode,
matchedSpace?.floorName || matchedSpace?.name
) )
const hallId = stringifyId(matchedSpace?.id) || undefined const hallId = stringifyId(matchedSpace?.id) || undefined
const poiId = createHallPoiId(matchedSpace, place, index) const poiId = createHallPoiId(matchedSpace, place, index)