Fix kanban view picker total count (#10898)
Fixes https://github.com/twentyhq/twenty/issues/9790 Before https://github.com/user-attachments/assets/332ec338-ce87-4d4d-ac47-a4e76dceb5b0 After https://github.com/user-attachments/assets/93a03842-386a-4e75-a709-85a91bbc7679 --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -15,7 +15,7 @@ export type AggregateRecordsData = {
|
||||
};
|
||||
};
|
||||
|
||||
export const useAggregateRecords = ({
|
||||
export const useAggregateRecords = <T extends AggregateRecordsData>({
|
||||
objectNameSingular,
|
||||
filter,
|
||||
recordGqlFieldsAggregate,
|
||||
@ -63,7 +63,7 @@ export const useAggregateRecords = ({
|
||||
|
||||
return {
|
||||
objectMetadataItem,
|
||||
data: formattedData,
|
||||
data: formattedData as T,
|
||||
loading,
|
||||
error,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user