Skip to content

Commit

Permalink
Da 431 fix query workbench crash (#432)
Browse files Browse the repository at this point in the history
Fix for #431
  • Loading branch information
prajwal-pai77 authored Oct 30, 2024
1 parent 405f556 commit 3a9a1d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-couchbase",
"displayName": "Couchbase",
"description": "",
"version": "2.1.7",
"version": "2.1.8",
"engines": {
"vscode": "^1.63.1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/workbench/queryWorkbench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class QueryWorkbench {
numDocs: result?.meta.metrics?.resultCount.toString() + " docs",
size: resultSize ? (resultSize > 1000 ? (resultSize / 1000).toFixed(2) + " KB" : resultSize + " Bytes") : ""
};
const explainPlan = JSON.stringify(result?.meta.profile.executionTimings);
const explainPlan = JSON.stringify(result?.meta.profile?.executionTimings);
workbenchWebviewProvider.setQueryResult(
JSON.stringify(result?.rows),
queryStatusProps,
Expand Down

0 comments on commit 3a9a1d1

Please sign in to comment.