Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

integrations_dev_panel: Use status key to get the status code.

afeefuddin6019d8ae17f0
diff --git a/web/src/portico/integrations_dev_panel.js b/web/src/portico/integrations_dev_panel.js
index 141b1d96e82..360b67cf944 100644
--- a/web/src/portico/integrations_dev_panel.js
+++ b/web/src/portico/integrations_dev_panel.js
@@ -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