Skip to content

Commit

Permalink
🐛 added length > 0 check
Browse files Browse the repository at this point in the history
  • Loading branch information
gokulprathin8 committed Aug 24, 2024
1 parent 131664a commit 29fcaf2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/resources/static/js/gw.history.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,12 @@ GW.history = {
</select>
<input type="number" id="durationValue" placeholder="Enter duration" style="color: black;">
</div>
<div id="statusFilterContainer">
<div id="statusFilterContainer">`;

<button id="failed-history-rm" class="history-remove-failed" data-history-process="`+ msg[0]['history_process']+ `">Remove Failed History</button>
<label for="statusFilter">Status:</label>
if (msg.length) {
content += `<button id="failed-history-rm" class="history-remove-failed" data-history-process="`+ msg[0]['history_process']+ `">Remove Failed History</button>`;
}
content += `<label for="statusFilter">Status:</label>
<select id="statusFilter" style="color: black;">
<option value="">All</option> <!-- Changed to "All" -->
<option value="Done">Done</option>
Expand Down

0 comments on commit 29fcaf2

Please sign in to comment.