Fixed bug for refectch activities and create activity on the currently filtered user. (#1493)
* Fixed bug for refectch activities and create activity on the currently filtered user. * Refactor optimistif effect --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -27,7 +27,7 @@ export function ShowPageAddButton({
|
||||
const openCreateActivity = useOpenCreateActivityDrawer();
|
||||
|
||||
function handleSelect(type: ActivityType) {
|
||||
openCreateActivity(type, [entity]);
|
||||
openCreateActivity({ type, targetableEntities: [entity] });
|
||||
closeDropdownButton();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user