Skip to content

Commit

Permalink
Fix set response display
Browse files Browse the repository at this point in the history
  • Loading branch information
faisalnjs committed Oct 3, 2024
1 parent 894b8f4 commit 0a35e26
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/checker/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,16 @@ function updateResponses() {
return b.id - a.id;
})
.forEach(r => {
if (r.response.includes('[')) {
var responseString = '';
var i = 0;
JSON.parse(r.response).forEach(a => {
responseString += a;
i++;
if (i < JSON.parse(r.response).length) responseString += ', ';
});
r.response = responseString;
}
var buttonGrid = document.createElement('div');
buttonGrid.className = "button-grid inputs";
buttonGrid.id = `response-${r.id}`;
Expand Down

0 comments on commit 0a35e26

Please sign in to comment.