appbaseio / appbaseio/reactivesearch

Consider defaultSelected value if only it is present in the aggs data from ES

Open
#164 0 comments 0 reactions 2 assignees Claimed by @metagrover View on GitHub
bug enhancement
Dominant language
JavaScript
Stars
4.9k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

## Bug Report

**Description:**

Currently, the value of `defaultSelected` is directly passed into the `updateQuery` method, without checking if the value is valid or not (i.e. not checking if the value exists in the aggregations data we received from ElasticSearch). This results in inconsistent behavior, since we do this validation in user-driven-components (like ToggleButton)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.