Courier - $state in searchSource (#15166) (#15369)

* Modifying courier to exclude filter properties that start with $

* Removing the $state property directly when building the filters
This commit is contained in:
Brandon Kobel 2017-12-04 08:07:44 -05:00 committed by GitHub
parent 8e27db38d1
commit 8f8da94e75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ const translateToQuery = function (filter) {
* @returns {object}
*/
const cleanFilter = function (filter) {
return _.omit(filter, ['meta']);
return _.omit(filter, ['meta', '$state']);
};
export function buildQueryFromFilters(filters, decorateQuery) {