fix: filter deleted assets while adding (#14304)

This commit is contained in:
karanh37 2023-12-07 18:47:44 +05:30 committed by GitHub
parent cb94243370
commit d544220690
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,6 +156,7 @@ export const AssetSelectionModal = ({
searchIndex: index,
query: searchText,
queryFilter: updatedQueryFilter,
includeDeleted: false,
});
const hits = res.hits.hits as SearchedDataProps['data'];
setTotalCount(res.hits.total.value ?? 0);