Skip to content

Commit 4e189f5

Browse files
committed
Allowing filtering and sorting by different fields if indexed
1 parent fd9ee77 commit 4e189f5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/firebase_firecms/src/hooks/useFirestoreDelegate.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,9 +568,6 @@ export function useFirestoreDelegate({
568568

569569
// Order by clause cannot contain a field with an equality filter
570570
const values: [WhereFilterOp, any][] = Object.values(filterValues) as [WhereFilterOp, any][];
571-
if (sortKey && values.map((v) => v[0]).includes("==")) {
572-
return false;
573-
}
574571

575572
const filterKeys = Object.keys(filterValues);
576573
const filtersCount = filterKeys.length;

0 commit comments

Comments
 (0)