Skip to content

Commit

Permalink
Fix Discover not respecting searchOnPageLoad Advanced Setting (#7252) (
Browse files Browse the repository at this point in the history
…#7262)

* Fixed Discover Canvas Status stuck in Loading state



* Changeset file for PR #7252 created/updated

---------



(cherry picked from commit 60ecd36)

Signed-off-by: Suchit Sahoo <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 16, 2024
1 parent 4728a48 commit 68ae0d7
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 68ae0d7

Please sign in to comment.