Skip to content

Commit

Permalink
[Discover]Fix infinite loop cause discover hang (opensearch-project#8082
Browse files Browse the repository at this point in the history
)

* fix infinit loop cause discovery hang

Signed-off-by: Hailong Cui <[email protected]>

* Changeset file for PR opensearch-project#8082 created/updated

---------

Signed-off-by: Hailong Cui <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
1 parent f5cdce6 commit 5aaa00c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/8082.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- [Discover]Fix infinite loop cause discover hang ([#8082](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8082))
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const useIndexPattern = (services: DiscoverViewServices) => {
indexPatternList || [],
uiSettings.get('defaultIndex')
);
if (isMounted) {
if (isMounted && newId) {
store!.dispatch(updateIndexPattern(newId));
handleIndexPattern();
}
Expand Down

0 comments on commit 5aaa00c

Please sign in to comment.