From 2ab0b010142f42a72bc1a15d691f67600c7f50a0 Mon Sep 17 00:00:00 2001 From: Philip Carneiro Date: Wed, 13 Nov 2024 10:59:25 +0000 Subject: [PATCH] fix for scratchpad 1.11 --- src/classes/insightsConnection.ts | 2 +- src/services/resultsPanelProvider.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/classes/insightsConnection.ts b/src/classes/insightsConnection.ts index 796ceab1..7f2a71cd 100644 --- a/src/classes/insightsConnection.ts +++ b/src/classes/insightsConnection.ts @@ -428,7 +428,7 @@ export class InsightsConnection { }; if (this.insightsVersion) { - if (this.insightsVersion >= 1.11) { + if (this.insightsVersion >= 1.12) { body.returnFormat = isTableView ? "structuredText" : "text"; } else { body.isTableView = isTableView; diff --git a/src/services/resultsPanelProvider.ts b/src/services/resultsPanelProvider.ts index 5f061179..243e91b2 100644 --- a/src/services/resultsPanelProvider.ts +++ b/src/services/resultsPanelProvider.ts @@ -225,7 +225,7 @@ export class KdbResultsViewProvider implements WebviewViewProvider { convertToGrid(results: any, isInsights: boolean, connVersion?: number): any { let rowData = []; let columnDefs = []; - if (connVersion && connVersion >= 1.11) { + if (connVersion && connVersion >= 1.12) { rowData = this.updatedExtractRowData(results); columnDefs = this.updatedExtractColumnDefs(results); } else {