chore(next): cleanup unused code (#13292)

Looks like a merge resolution kept unused code. The same condition is
added a couple lines below this removal.
This commit is contained in:
Jarrod Flesch
2025-07-28 09:43:51 -04:00
committed by GitHub
parent d093bb1f00
commit b1aac19668

View File

@@ -145,25 +145,6 @@ export const renderListView = async (
})
}
let whereCondition = mergeListSearchAndWhere({
collectionConfig,
search: typeof query?.search === 'string' ? query.search : undefined,
where: combineWhereConstraints([query?.where, baseListFilter]),
})
if (query?.trash === true) {
whereCondition = {
and: [
whereCondition,
{
deletedAt: {
exists: true,
},
},
],
}
}
let queryPreset: QueryPreset | undefined
let queryPresetPermissions: SanitizedCollectionPermission | undefined