File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed
src/containers/Tenant/Diagnostics/TopQueries Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ const b = cn('kv-top-queries');
1818interface SimpleTableWithDrawerProps {
1919 columns : Column < KeyValueRow > [ ] ;
2020 data : KeyValueRow [ ] ;
21- loading ?: boolean ;
21+ isFetching ?: boolean ;
22+ isLoading ?: boolean ;
2223 onRowClick ?: (
2324 row : KeyValueRow | null ,
2425 index ?: number ,
@@ -39,7 +40,8 @@ interface SimpleTableWithDrawerProps {
3940export function QueriesTableWithDrawer ( {
4041 columns,
4142 data,
42- loading,
43+ isFetching,
44+ isLoading,
4345 onRowClick,
4446 columnsWidthLSKey,
4547 emptyDataMessage,
@@ -104,7 +106,8 @@ export function QueriesTableWithDrawer({
104106 columnsWidthLSKey = { columnsWidthLSKey }
105107 columns = { columns }
106108 data = { data }
107- isFetching = { loading }
109+ isFetching = { isFetching }
110+ isLoading = { isLoading }
108111 settings = { tableSettings }
109112 onRowClick = { handleRowClick }
110113 rowClassName = { ( row ) => b ( 'row' , { active : isEqual ( row , selectedRow ) } ) }
Original file line number Diff line number Diff line change @@ -96,11 +96,12 @@ export const RunningQueriesData = ({
9696 </ TableWithControlsLayout . Controls >
9797
9898 { error ? < ResponseError error = { parseQueryErrorToString ( error ) } /> : null }
99- < TableWithControlsLayout . Table loading = { isLoading } >
99+ < TableWithControlsLayout . Table >
100100 < QueriesTableWithDrawer
101101 columns = { columnsToShow }
102102 data = { rows || [ ] }
103- loading = { isFetching && currentData === undefined }
103+ isFetching = { isFetching && currentData === undefined }
104+ isLoading = { isLoading }
104105 columnsWidthLSKey = { RUNNING_QUERIES_COLUMNS_WIDTH_LS_KEY }
105106 emptyDataMessage = { i18n ( 'no-data' ) }
106107 sortOrder = { tableSort }
Original file line number Diff line number Diff line change @@ -162,11 +162,12 @@ export const TopQueriesData = ({
162162 </ TableWithControlsLayout . Controls >
163163
164164 { error ? < ResponseError error = { parseQueryErrorToString ( error ) } /> : null }
165- < TableWithControlsLayout . Table loading = { isLoading } >
165+ < TableWithControlsLayout . Table >
166166 < QueriesTableWithDrawer
167167 columns = { columnsToShow }
168168 data = { rows || [ ] }
169- loading = { isFetching && currentData === undefined }
169+ isFetching = { isFetching && currentData === undefined }
170+ isLoading = { isLoading }
170171 columnsWidthLSKey = { TOP_QUERIES_COLUMNS_WIDTH_LS_KEY }
171172 emptyDataMessage = { i18n ( 'no-data' ) }
172173 sortOrder = { tableSort }
You can’t perform that action at this time.
0 commit comments