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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user