mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
web: Switch from JSON.parse(xhr.responseText) to xhr.responseJSON.
This commit is contained in:
committed by
Tim Abbott
parent
d05a1e9efa
commit
7efe989a72
@@ -699,8 +699,7 @@ export function toggle_resolve_topic(message_id, old_topic_name, report_errors_i
|
||||
}
|
||||
|
||||
if (report_errors_in_global_banner) {
|
||||
const error_msg = JSON.parse(xhr.responseText).msg;
|
||||
ui_report.generic_embed_error(error_msg, 3500);
|
||||
ui_report.generic_embed_error(xhr.responseJSON.msg, 3500);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user