From b1aac1966892d644aa097ae81131cd61da21742a Mon Sep 17 00:00:00 2001 From: Jarrod Flesch <30633324+JarrodMFlesch@users.noreply.github.com> Date: Mon, 28 Jul 2025 09:43:51 -0400 Subject: [PATCH] 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. --- packages/next/src/views/List/index.tsx | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/packages/next/src/views/List/index.tsx b/packages/next/src/views/List/index.tsx index 2d7b2ee2ac..db514c5884 100644 --- a/packages/next/src/views/List/index.tsx +++ b/packages/next/src/views/List/index.tsx @@ -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