Fix: display warning when partition is selected for a global view (#1184)
diff --git a/app/addons/documents/index-results/actions/fetch.js b/app/addons/documents/index-results/actions/fetch.js
index 6fdb32c..148ee43 100644
--- a/app/addons/documents/index-results/actions/fetch.js
+++ b/app/addons/documents/index-results/actions/fetch.js
@@ -103,7 +103,7 @@
// dispatch that we're all done
dispatch(newResultsAvailable(finalDocList, params, canShowNext, docType, executionStats, warning));
}).catch((error) => {
- if (error && error.message.includes('partition query is not supported')) {
+ if (error && error.message.includes('`partition` parameter is not supported')) {
dispatch(partitionParamNotSupported());
} else if (error && error.message.includes('`partition` parameter is mandatory')) {
dispatch(partitionParamIsMandatory());