diff --git a/packages/twenty-front/src/modules/action-menu/components/RecordIndexActionMenuButtons.tsx b/packages/twenty-front/src/modules/action-menu/components/RecordIndexActionMenuButtons.tsx index 631137be776b..37df37d1eedb 100644 --- a/packages/twenty-front/src/modules/action-menu/components/RecordIndexActionMenuButtons.tsx +++ b/packages/twenty-front/src/modules/action-menu/components/RecordIndexActionMenuButtons.tsx @@ -28,9 +28,7 @@ export const RecordIndexActionMenuButtons = () => { variant="secondary" accent="default" title={entry.label} - onClick={() => { - entry.onClick?.(); - }} + onClick={entry.onClick} ariaLabel={entry.label} /> ))} diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyFetchMoreLoader.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyFetchMoreLoader.tsx index 814b2a18d879..8061966ebfa7 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyFetchMoreLoader.tsx +++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyFetchMoreLoader.tsx @@ -62,8 +62,6 @@ export const RecordTableBodyFetchMoreLoader = () => { return <>; } - console.log('isFetchingRecord'); - return ( diff --git a/packages/twenty-server/src/modules/favorite/services/favorite-deletion.service.ts b/packages/twenty-server/src/modules/favorite/services/favorite-deletion.service.ts index c080f910a203..32f62a34b01a 100644 --- a/packages/twenty-server/src/modules/favorite/services/favorite-deletion.service.ts +++ b/packages/twenty-server/src/modules/favorite/services/favorite-deletion.service.ts @@ -80,6 +80,8 @@ export class FavoriteDeletionService { ); } - await Promise.all(batches.map((batch) => favoriteRepository.delete(batch))); + for (const batch of batches) { + await favoriteRepository.delete(batch); + } } }