From 2452bb788866895cd73b615549417ceabcf16ec1 Mon Sep 17 00:00:00 2001 From: Marco Salazar Date: Wed, 21 Aug 2024 18:53:06 -0400 Subject: [PATCH] state.searching --- .../dagster-ui/packages/ui-core/src/search/SearchDialog.tsx | 2 +- .../packages/ui-core/src/search/SearchResults.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js_modules/dagster-ui/packages/ui-core/src/search/SearchDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/search/SearchDialog.tsx index 82a6d227e341f..5f50a72c81fed 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/search/SearchDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/search/SearchDialog.tsx @@ -223,7 +223,7 @@ export const SearchDialog = () => { queryString={queryString} results={renderedResults} onClickResult={onClickResult} - loading={loading} + searching={loading || state.searching} /> diff --git a/js_modules/dagster-ui/packages/ui-core/src/search/SearchResults.tsx b/js_modules/dagster-ui/packages/ui-core/src/search/SearchResults.tsx index 1973f99545f47..3e6fb09143492 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/search/SearchResults.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/search/SearchResults.tsx @@ -232,14 +232,14 @@ export type SearchResultsProps = { onClickResult: (result: T) => void; queryString: string; results: T[]; - loading: boolean; + searching: boolean; }; export const SearchResults = (props: SearchResultsProps) => { - const {highlight, onClickResult, queryString, results, loading} = props; + const {highlight, onClickResult, queryString, results, searching} = props; if (!results.length && queryString) { - if (loading) { + if (searching) { return; } return No results;