Skip to content

Commit 42f660f

Browse files
committed
fixed an issue that the initial discover summary generated with the
wrong data Signed-off-by: Yulong Ruan <[email protected]>
1 parent 4ef7f0b commit 42f660f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/query_enhancements/public/query_assist/components/query_assist_summary.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export const QueryAssistSummary: React.FC<QueryAssistSummaryProps> = (props) =>
151151
filter((value) => !isEmpty(value) && !isEmpty(value?.fields))
152152
)
153153
.subscribe((df) => {
154-
if (df) {
154+
if (df && currentQueryStateRef.current.question) {
155155
setResults(convertResult(df));
156156
}
157157
});

0 commit comments

Comments
 (0)