Skip to content

Commit

Permalink
Filter duplicate entries
Browse files Browse the repository at this point in the history
  • Loading branch information
Dvd848 committed Nov 28, 2020
1 parent ca20304 commit 2613e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/filter.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ <h5 class="modal-title" id="saveModalLongTitle"></h5>
$(".ctf_name_entry").each(function(index, elem) {
const element = $(elem);
const name = element.find(".ctf_name_input").val();
if (name.trim() != "")
if ( (name.trim() != "") && (!ctf_names_arr.includes(name)) )
{
ctf_names_arr.push(name);
}
Expand Down

0 comments on commit 2613e84

Please sign in to comment.