File tree Expand file tree Collapse file tree 1 file changed +21
-17
lines changed
src/containers/Tenant/Query/ExecuteResult Expand file tree Collapse file tree 1 file changed +21
-17
lines changed Original file line number Diff line number Diff line change @@ -119,24 +119,28 @@ export function ExecuteResult({
119119 />
120120 </ div >
121121 ) }
122- < div className = { b ( 'result' ) } >
123- < div className = { b ( 'result-head' ) } >
124- < Text variant = "subheader-3" >
125- { currentResult ?. truncated
126- ? i18n ( 'title.truncated' )
127- : i18n ( 'title.result' ) }
128- </ Text >
129- < Text
130- color = "secondary"
131- variant = "body-2"
132- className = { b ( 'row-count' ) }
133- > { `(${ currentResult ?. result ?. length } )` } </ Text >
122+ { currentResult && (
123+ < div className = { b ( 'result' ) } >
124+ < div className = { b ( 'result-head' ) } >
125+ < Text variant = "subheader-3" >
126+ { currentResult ?. truncated
127+ ? i18n ( 'title.truncated' )
128+ : i18n ( 'title.result' ) }
129+ </ Text >
130+ { currentResult . result && (
131+ < Text
132+ color = "secondary"
133+ variant = "body-2"
134+ className = { b ( 'row-count' ) }
135+ > { `(${ currentResult . result . length } )` } </ Text >
136+ ) }
137+ </ div >
138+ < QueryResultTable
139+ data = { currentResult . result }
140+ columns = { currentResult . columns }
141+ />
134142 </ div >
135- < QueryResultTable
136- data = { currentResult ?. result }
137- columns = { currentResult ?. columns }
138- />
139- </ div >
143+ ) }
140144 </ div >
141145 ) ;
142146 } ;
You can’t perform that action at this time.
0 commit comments