Fix duplicating options on the download page

This commit is contained in:
Alex Ling 2021-01-20 08:02:07 +00:00
parent 68050a9025
commit 2b079c652d

View File

@ -156,8 +156,8 @@ const search = () => {
langs.unshift('All'); langs.unshift('All');
group_names.unshift('All'); group_names.unshift('All');
$('select#lang-select').append(langs.map(e => `<option>${e}</option>`).join('')); $('select#lang-select').html(langs.map(e => `<option>${e}</option>`).join(''));
$('select#group-select').append(group_names.map(e => `<option>${e}</option>`).join('')); $('select#group-select').html(group_names.map(e => `<option>${e}</option>`).join(''));
$('#filter-form').removeAttr('hidden'); $('#filter-form').removeAttr('hidden');