File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -719,7 +719,7 @@ export class InsightsConnection {
719719 response . data . data . map ( ( x : string ) => parseInt ( x , 16 ) ) ,
720720 ) . buffer ;
721721
722- response . data . data = handleWSResults ( buffer ) ;
722+ response . data . data = handleWSResults ( buffer , isTableView ) ;
723723 response . data . data = handleScratchpadTableRes (
724724 response . data . data ,
725725 ) ;
Original file line number Diff line number Diff line change @@ -100,7 +100,10 @@ export function handleWSError(ab: ArrayBuffer): any {
100100 return { error : errorString } ;
101101}
102102
103- export function handleWSResults ( ab : ArrayBuffer ) : any {
103+ export function handleWSResults ( ab : ArrayBuffer , isTableView ?: boolean ) : any {
104+ if ( isTableView === undefined ) {
105+ isTableView = ext . isResultsTabVisible ;
106+ }
104107 let res : any ;
105108 try {
106109 if ( isCompressed ( ab ) ) {
@@ -114,7 +117,7 @@ export function handleWSResults(ab: ArrayBuffer): any {
114117 if ( res . rows . length === 0 && res . columns . length === 0 ) {
115118 return "No results found." ;
116119 }
117- if ( ext . isResultsTabVisible ) {
120+ if ( isTableView ) {
118121 return getValueFromArray ( res ) ;
119122 }
120123 return convertRows ( res . rows ) ;
You can’t perform that action at this time.
0 commit comments