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