7665 handle the select all case inside the action menu (#7742)

Closes #7665 
- Handle select all
- Handle Filters

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Raphaël Bosi
2024-10-21 14:22:03 +02:00
committed by GitHub
parent eaab2d0dd2
commit 40152d3b92
52 changed files with 788 additions and 427 deletions

View File

@ -6,7 +6,7 @@ import { isDefined } from '~/utils/isDefined';
export const useObjectMetadataItemById = ({
objectId,
}: {
objectId: string | null;
objectId: string;
}) => {
const objectMetadataItems = useRecoilValue(objectMetadataItemsState);
@ -15,9 +15,7 @@ export const useObjectMetadataItemById = ({
);
if (!isDefined(objectMetadataItem)) {
return {
objectMetadataItem: null,
};
throw new Error(`Object metadata item not found for id ${objectId}`);
}
return {