Fix UI not being refreshed after grouping by None in the table (#12013)
Fixes https://github.com/twentyhq/twenty/issues/11719 Before: https://github.com/user-attachments/assets/9350d20c-e782-4bf4-9e24-bc7dd7f3d03b After: https://github.com/user-attachments/assets/d452fd54-63f7-4519-b70f-5c380b7dd8da
This commit is contained in:
@ -145,11 +145,15 @@ export const useHandleRecordGroupField = () => {
|
||||
}
|
||||
|
||||
await deleteViewGroupRecords(view.viewGroups);
|
||||
|
||||
setRecordGroupsFromViewGroups(view.id, [], objectMetadataItem);
|
||||
},
|
||||
[
|
||||
deleteViewGroupRecords,
|
||||
currentViewIdCallbackState,
|
||||
getViewFromPrefetchState,
|
||||
setRecordGroupsFromViewGroups,
|
||||
objectMetadataItem,
|
||||
],
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user