if have't any bucket user can't create contacts
This commit is contained in:
parent
c7b93006d8
commit
0886990f9d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user