@@ -2,7 +2,7 @@ import React from 'react';
22
33import type { Settings } from '@gravity-ui/react-data-table' ;
44import type { ControlGroupOption } from '@gravity-ui/uikit' ;
5- import { ClipboardButton , Loader , RadioButton } from '@gravity-ui/uikit' ;
5+ import { ClipboardButton , RadioButton } from '@gravity-ui/uikit' ;
66
77import EnableFullscreenButton from '../../../../components/EnableFullscreenButton/EnableFullscreenButton' ;
88import Fullscreen from '../../../../components/Fullscreen/Fullscreen' ;
@@ -271,7 +271,7 @@ export function QueryResultViewer({
271271 const renderLeftControls = ( ) => {
272272 return (
273273 < div className = { b ( 'controls-left' ) } >
274- { ! error && ! isLoading && (
274+ { ! error && (
275275 < React . Fragment >
276276 { valueIsDefined ( stats ?. DurationUs ) ? (
277277 < QueryDuration duration = { Number ( stats . DurationUs ) } />
@@ -286,7 +286,6 @@ export function QueryResultViewer({
286286 </ React . Fragment >
287287 ) }
288288 < QueryExecutionStatus error = { error } loading = { isLoading } />
289- { isLoading ? < Loader size = "s" /> : null }
290289 { data ?. traceId && isExecute ? < TraceButton traceId = { data . traceId } /> : null }
291290 </ div >
292291 ) ;
@@ -315,7 +314,7 @@ export function QueryResultViewer({
315314 { renderRightControls ( ) }
316315 </ div >
317316 { isLoading || isQueryCancelledError ( error ) ? null : < QuerySettingsBanner /> }
318- < LoaderWrapper loading = { isLoading && ! data . resultSets } >
317+ < LoaderWrapper loading = { isLoading && ( ! data . resultSets || activeSection !== 'result' ) } >
319318 < Fullscreen className = { b ( 'result' ) } > { renderResultSection ( ) } </ Fullscreen >
320319 </ LoaderWrapper >
321320 </ React . Fragment >
0 commit comments