web: Switch from JSON.parse(xhr.responseText) to xhr.responseJSON.

This commit is contained in:
Alex Vandiver
2023-07-18 18:14:56 +00:00
committed by Tim Abbott
parent d05a1e9efa
commit 7efe989a72
17 changed files with 34 additions and 36 deletions

View File

@@ -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);
}
},
});