Skip to content

Commit c91b740

Browse files
committed
Use correct object for noUi
Signed-off-by: worksofliam <[email protected]>
1 parent 28ab319 commit c91b740

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/views/results/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ async function runHandler(options?: StatementInfo) {
305305

306306
if (statementDetail.qualifier === `cl`) {
307307
// TODO: handle noUi
308-
if (options.noUi) {
308+
if (statementDetail.noUi) {
309309
setCancelButtonVisibility(true);
310310
const command = statementDetail.content.split(` `)[0].toUpperCase();
311311

@@ -325,7 +325,7 @@ async function runHandler(options?: StatementInfo) {
325325

326326
} else if ([`statement`, `update`].includes(statementDetail.qualifier)) {
327327
// If it's a basic statement, we can let it scroll!
328-
if (options.noUi) {
328+
if (statementDetail.noUi) {
329329
setCancelButtonVisibility(true);
330330
chosenView.setLoadingText(`Running SQL statement... (${possibleTitle})`, false);
331331
await JobManager.runSQL(statementDetail.content, undefined, 1);
@@ -461,12 +461,12 @@ async function runHandler(options?: StatementInfo) {
461461
vscode.window.showErrorMessage(errorText);
462462
}
463463

464-
if (options.noUi) {
464+
if (statementDetail.noUi) {
465465
throw new Error(errorText);
466466
}
467467
}
468468

469-
if (options.noUi) {
469+
if (statementDetail.noUi) {
470470
setCancelButtonVisibility(false);
471471
}
472472

0 commit comments

Comments
 (0)