ammenities

This commit is contained in:
Samandar Turgunboyev
2025-11-05 18:44:53 +05:00
parent 65a6c963f2
commit b3401085c7

View File

@@ -1046,7 +1046,8 @@ const StepOne = ({
<Command>
<CommandList>
<CommandGroup heading={t("Mavjud qulayliklar")}>
{badge?.data?.data?.results?.map((item: any) => {
{amenitiesData?.data?.data?.results?.map(
(item: any) => {
const currentBadges =
form.getValues("amenities") ?? [];
const selected = currentBadges.includes(item.id);
@@ -1087,7 +1088,8 @@ const StepOne = ({
{item.name}
</CommandItem>
);
})}
},
)}
</CommandGroup>
</CommandList>
</Command>