if have't any bucket user can't create contacts

This commit is contained in:
Pramod Mahajan 2025-06-09 12:21:45 +05:30
parent c7b93006d8
commit 0886990f9d

View File

@ -229,19 +229,21 @@ const handleDeleteContact = async (overrideId = null) => {
color:"primary",
onClick: () => setOpenBucketModal(true),
});
}
actions.push({
label: "New Contact",
icon: "bx bx-plus-circle",
color: "warning",
onClick: () => setIsOpenModal(true),
} );
}
if ( buckets?.length > 0 )
{
actions.push( {
label: "New Contact",
icon: "bx bx-plus-circle",
color: "warning",
onClick: () => setIsOpenModal( true ),
} );
}
setActions(actions);
return () => setActions([]);
}, [IsPage]);
}, [IsPage,buckets]);
useEffect( () =>
{
setPerfence(prefernceContacts)