You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by am...@apache.org on 2019/02/08 12:11:49 UTC
[couchdb-fauxton] branch master updated: Fix: display warning when
partition is selected for a global view (#1184)
This is an automated email from the ASF dual-hosted git repository.
amaranhao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-fauxton.git
The following commit(s) were added to refs/heads/master by this push:
new af97968 Fix: display warning when partition is selected for a global view (#1184)
af97968 is described below
commit af97968a51bc97ac704ec3a7e6a12d24867a9383
Author: Antonio Maranhao <30...@users.noreply.github.com>
AuthorDate: Fri Feb 8 07:11:45 2019 -0500
Fix: display warning when partition is selected for a global view (#1184)
---
app/addons/documents/index-results/actions/fetch.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 @@ export const fetchDocs = (queryDocs, fetchParams, queryOptionsParams) => {
// 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());