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 2018/04/04 13:32:18 UTC
[couchdb-fauxton] branch master updated: Fix query options reducer
code (#1072)
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 cb2ff49 Fix query options reducer code (#1072)
cb2ff49 is described below
commit cb2ff49d82ad89a36346114ef215ae4d84d8505e
Author: Antonio Maranhao <30...@users.noreply.github.com>
AuthorDate: Wed Apr 4 09:32:15 2018 -0400
Fix query options reducer code (#1072)
---
app/addons/documents/index-results/reducers.js | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
diff --git a/app/addons/documents/index-results/reducers.js b/app/addons/documents/index-results/reducers.js
index b37b85d..2f90d3a 100644
--- a/app/addons/documents/index-results/reducers.js
+++ b/app/addons/documents/index-results/reducers.js
@@ -325,18 +325,11 @@ export const getQueryOptionsParams = (state) => {
// Only add UPDATE and STABLE parameters when different than
// their respective default values. This prevent errors in
// older CouchDB versions that don't support these parameters.
- if (queryOptionsPanel.update !== undefined) {
- // Default value is 'true'
- if (queryOptionsPanel.update !== 'true') {
- params.update = queryOptionsPanel.update;
- }
+ if (queryOptionsPanel.update !== undefined && queryOptionsPanel.update !== 'true') {
+ params.update = queryOptionsPanel.update;
}
-
- if (typeof queryOptionsPanel.stable === 'boolean') {
- // Default value is false
- if (queryOptionsPanel.stable === true) {
- params.stable = queryOptionsPanel.stable;
- }
+ if (queryOptionsPanel.stable === true) {
+ params.stable = queryOptionsPanel.stable;
}
return params;
--
To stop receiving notification emails like this one, please contact
amaranhao@apache.org.