Step 1: Filter the explore page for observations with any observation field, e.g. the “Associated observation” one
Step 2: Click the link which says “ observations”, e.g. where it says 2,116 observations under Western Honey Bee
Step 3: Rather than seeing those 2,116 observations as I would expect, my observation field url filter is removed and I am presented with all ~700k Western Honey Bee observations.
params = _.omitBy( params, function ( value ) {
return _.isEmpty( value ) && !_.isBoolean( value ) && !_.isNumber( value );
} );
The OP used field:Associated%20observation=
Because Associated%20observation does not have a value , the line of code above deletes the observation field from params. In order to fix the bug, the code needs to allow for observations fields with no value, e.g. empty string “”.