File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ import {
6464 ResultSetSchema ,
6565} from "./pure/bqrs-cli-types" ;
6666import { AbstractWebview , WebviewPanelConfig } from "./abstract-webview" ;
67- import { PAGE_SIZE } from "./config" ;
67+ import { isCanary , PAGE_SIZE } from "./config" ;
6868import { HistoryItemLabelProvider } from "./query-history/history-item-label-provider" ;
6969import { telemetryListener } from "./telemetry" ;
7070import { redactableError } from "./pure/errors" ;
@@ -221,8 +221,8 @@ export class ResultsView extends AbstractWebview<
221221 viewColumn : this . chooseColumnForWebview ( ) ,
222222 preserveFocus : true ,
223223 view : "results" ,
224- // Required for the graph viewer which is using d3-graphviz WASM module
225- allowWasmEval : true ,
224+ // Required for the graph viewer which is using d3-graphviz WASM module. Only supported in canary mode.
225+ allowWasmEval : isCanary ( ) ,
226226 } ;
227227 }
228228
@@ -658,7 +658,8 @@ export class ResultsView extends AbstractWebview<
658658 }
659659 let data ;
660660 let numTotalResults ;
661- if ( metadata ?. kind === GRAPH_TABLE_NAME ) {
661+ // Graph results are only supported in canary mode because the graph viewer is unsupported
662+ if ( metadata ?. kind === GRAPH_TABLE_NAME && isCanary ( ) ) {
662663 data = await interpretGraphResults (
663664 this . cliServer ,
664665 metadata ,
You can’t perform that action at this time.
0 commit comments