Skip to content

Commit 83a36a9

Browse files
committed
fixed Insights Python results do not show up on notebooks unless kdbResultsView is showing
1 parent 9fd5772 commit 83a36a9

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/classes/insightsConnection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
);

src/utils/queryUtils.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)