Enhance ResidentialFloorView and hqFloors by excluding specific residential floors (19, 20, 23, 24, 27, 28) from selection options; update floor data structure for clarity and improved organization.

This commit is contained in:
2026-02-10 16:26:43 +05:00
parent f6b5ee8453
commit f9adeae6dc
3 changed files with 27 additions and 25 deletions
@@ -180,10 +180,14 @@ function getSelectOptions(
if (complexName === "hq") {
if (!floorsData) return [];
return floorsData.map((item) => {
if (item.floor === 29) return "29-30";
return item.floor.toString();
});
// Exclude floors 19, 20, 23, 24, 27, 28
const excludedFloors = [19, 20, 23, 24, 27, 28];
return floorsData
.filter((item) => !excludedFloors.includes(item.floor))
.map((item) => {
if (item.floor === 29) return "29-30";
return item.floor.toString();
});
}
// Default