Skip to content

Commit

Permalink
Ported empty paylod fix to B5
Browse files Browse the repository at this point in the history
  • Loading branch information
orangejenny committed Dec 19, 2024
1 parent d2b417c commit d3c0fc6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@
const initialPageData = hqImport("hqwebapp/js/initial_page_data"),
selectAll = document.getElementById('select-all'),
selectPending = document.getElementById('select-pending'),
@@ -78,7 +78,7 @@
}
if (contentType === 'text/xml') {
editor.session.setMode('ace/mode/xml');
- } else if (['application/json', 'application/x-www-form-urlencoded'].includes(contentType)) {
+ } else if (contentType === 'application/json') {
editor.session.setMode('ace/mode/json');
}
editor.session.setValue(data.payload);
@@ -142,7 +142,7 @@
action = getAction();
let $btn;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ hqDefine('repeaters/js/bootstrap5/repeat_record_report', function () {
}
if (contentType === 'text/xml') {
editor.session.setMode('ace/mode/xml');
} else if (contentType === 'application/json') {
} else if (['application/json', 'application/x-www-form-urlencoded'].includes(contentType)) {
editor.session.setMode('ace/mode/json');
}
editor.session.setValue(data.payload);
Expand Down

0 comments on commit d3c0fc6

Please sign in to comment.