Merge pull request #5 from SamandarTurgunboyev/samandar

ammenities
This commit is contained in:
Samandar Turg'unboev
2025-11-05 18:45:37 +05:00
committed by GitHub

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>