integrations_dev_panel: Use status key to get the status code.

This commit is contained in:
afeefuddin 2024-07-27 15:13:40 +05:30 committed by Tim Abbott
parent d3217206ed
commit 6019d8ae17
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ function update_url() {
// API callers: These methods handle communicating with the Python backend API.
function handle_unsuccessful_response(response) {
if (response.responseJSON?.msg) {
const status_code = response.statusCode().status;
const status_code = response.status;
set_results_notice(`Result: (${status_code}) ${response.responseJSON.msg}`, "warning");
} else {
// If the response is not a JSON response, then it is probably