Skip to content

Commit

Permalink
Fix Discover not respecting searchOnPageLoad Advanced Setting (#7252)
Browse files Browse the repository at this point in the history
* Fixed Discover Canvas Status stuck in Loading state

Signed-off-by: Suchit Sahoo <suchsah@amazon.com>

* Changeset file for PR #7252 created/updated

---------

Signed-off-by: Suchit Sahoo <suchsah@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 60ecd36)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 4728a48 commit 8cee728
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/7252.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Discover page status stuck in loading State ([#7252](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7252))
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
useOpenSearchDashboards,
} from '../../../../../opensearch_dashboards_react/public';
import { getServices } from '../../../opensearch_dashboards_services';
import { useSearch, SearchContextValue, ResultStatus } from '../utils/use_search';
import { useSearch, SearchContextValue } from '../utils/use_search';

const SearchContext = React.createContext<SearchContextValue>({} as SearchContextValue);

Expand All @@ -22,9 +22,6 @@ export default function DiscoverContext({ children }: React.PropsWithChildren<Vi
...deServices,
...services,
});
searchParams.data$.next({
status: ResultStatus.LOADING,
});

return (
<OpenSearchDashboardsContextProvider services={services}>
Expand Down

0 comments on commit 8cee728

Please sign in to comment.