Getting value.map is not a function in conditions.push(inArray(properties.amenities, amenities));

While filtering an table I am using has column ammenities for which we are using an enum array
export const AmmenitiesEnum = pgEnum("ammenities", [
"Shopping centres/malls",
"Health care facilities",
"Schools and colleges/universities",
"Parks and Gardens",
"Public Trasnport facilty",
"Fuel Station",
"Other Recreational facilities",
]);
export const AmmenitiesEnum = pgEnum("ammenities", [
"Shopping centres/malls",
"Health care facilities",
"Schools and colleges/universities",
"Parks and Gardens",
"Public Trasnport facilty",
"Fuel Station",
"Other Recreational facilities",
]);
this is the ENUM
amenities: AmmenitiesEnum("ammenites").array(),
amenities: AmmenitiesEnum("ammenites").array(),
this is the schema
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server