Fix Query Tool error messages for psycopg3 driver.

This commit is contained in:
Khushboo Vashi 2023-02-22 14:07:05 +05:30 committed by GitHub
parent 9abbd30790
commit b640df5bdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -782,7 +782,7 @@ export function ResultSet() {
setSelectedRows(new Set());
setSelectedColumns(new Set());
setLoaderText(gettext('Waiting for the query to complete...'));
await rsu.current.startExecution(
return await rsu.current.startExecution(
query, explainObject,
()=>{
setColumns([]);
@ -829,8 +829,8 @@ export function ResultSet() {
}
);
} else {
await yesCallback();
pollCallback();
let goForPoll = await yesCallback();
if (goForPoll) pollCallback();
}
};