mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-09 23:15:58 -06:00
Fix Debugger restart issue.
This commit is contained in:
parent
70b2ead852
commit
5cb64f7602
@ -790,10 +790,6 @@ export default function DebuggerArgumentComponent({ debuggerInfo, restartDebug,
|
||||
method: 'POST',
|
||||
data: JSON.stringify(argsValueList),
|
||||
})
|
||||
.then(function () {
|
||||
/* Close the debugger modal dialog */
|
||||
props.closeModal();
|
||||
})
|
||||
.catch(function (error) {
|
||||
props.closeModal();
|
||||
Notify.alert(
|
||||
@ -816,6 +812,7 @@ export default function DebuggerArgumentComponent({ debuggerInfo, restartDebug,
|
||||
})
|
||||
.then(function () {
|
||||
/*This is intentional (SonarQube)*/
|
||||
props.closeModal();
|
||||
})
|
||||
.catch(function (error) {
|
||||
setLoaderText('');
|
||||
|
@ -353,12 +353,6 @@ export default function DebuggerComponent({ pgAdmin, selectedNodeInfo, panel, ev
|
||||
url: baseUrl,
|
||||
method: 'POST',
|
||||
})
|
||||
.then(function (res) {
|
||||
if (res.data.data.status) {
|
||||
enableToolbarButtons();
|
||||
pollResult(params.transId);
|
||||
}
|
||||
})
|
||||
.catch(raiseJSONError);
|
||||
enableToolbarButtons();
|
||||
pollResult(params.transId);
|
||||
@ -372,11 +366,6 @@ export default function DebuggerComponent({ pgAdmin, selectedNodeInfo, panel, ev
|
||||
url: baseUrl,
|
||||
method: 'POST',
|
||||
})
|
||||
.then(function (res) {
|
||||
if (res.data.data.status) {
|
||||
messages(params.transId);
|
||||
}
|
||||
})
|
||||
.catch(raiseJSONError);
|
||||
messages(params.transId);
|
||||
}
|
||||
@ -637,12 +626,10 @@ export default function DebuggerComponent({ pgAdmin, selectedNodeInfo, panel, ev
|
||||
url: base_url,
|
||||
method: 'POST',
|
||||
})
|
||||
.then(function () {
|
||||
if (params.directDebugger.debug_type) {
|
||||
pollEndExecutionResult(params.transId);
|
||||
}
|
||||
})
|
||||
.catch(raisePollingError);
|
||||
if (params.directDebugger.debug_type) {
|
||||
pollEndExecutionResult(params.transId);
|
||||
}
|
||||
}
|
||||
|
||||
const pollEndExecuteError = (res) => {
|
||||
@ -742,7 +729,7 @@ export default function DebuggerComponent({ pgAdmin, selectedNodeInfo, panel, ev
|
||||
/*
|
||||
"result" is undefined only in case of EDB procedure.
|
||||
As Once the EDB procedure execution is completed then we are
|
||||
not getting any result so we need ignore the result.
|
||||
not getting any result so we need to ignore the result.
|
||||
*/
|
||||
setActiveLine(-1);
|
||||
params.directDebugger.direct_execution_completed = true;
|
||||
|
Loading…
Reference in New Issue
Block a user