Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bosiraphael committed Dec 20, 2024
1 parent 6b6aced commit 7f0cca2
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,9 @@ export const useDeleteMultipleRecordsAction = ({
(field) => field.name === 'deletedAt',
);

const isDeletedFilterActive =
isDefined(deletedAtFieldMetadata) &&
isDefined(graphqlFilter) &&
contextStoreFilters.some(
(filter) => filter.fieldMetadataId === deletedAtFieldMetadata.id,
);
const isDeletedFilterActive = contextStoreFilters.some(
(filter) => filter.fieldMetadataId === deletedAtFieldMetadata?.id,
);

const { fetchAllRecords: fetchAllRecordIds } = useLazyFetchAllRecords({
objectNameSingular: objectMetadataItem.nameSingular,
Expand Down

0 comments on commit 7f0cca2

Please sign in to comment.