fix table crashing, for filtered group collections

This commit is contained in:
shamsmosowi
2023-01-06 10:32:04 +01:00
parent 6717a0f2ac
commit f803a3a21d

View File

@@ -22,7 +22,10 @@ export const handleFirestoreError = (
return;
}
if (error.message.includes("indexes?create_composite=")) {
if (
error.message.includes("indexes?create_composite=") ||
error.message.includes("/firestore/indexes?")
) {
enqueueSnackbar(
"Filtering while having another column sorted requires a new Firestore index",
{