Replace select2 detection

62fdce8cad0f975b12aee3a3aa2bab76fd439463

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
public/scripts/world-info.js+1 -1
@@ -1960,7 +1960,7 @@ function clearEntryList() {
1960 $list.find('select').each(function () {1960 $list.find('select').each(function () {
1961 const $select = $(this);1961 const $select = $(this);
1962 // Remove Select2-related data and container if present1962 // Remove Select2-related data and container if present
1963 if ($select.hasClass('select2-hidden-accessible')) {1963 if ($select.data('select2')) {
1964 try {1964 try {
1965 $select.select2('destroy');1965 $select.select2('destroy');
1966 } catch (e) {1966 } catch (e) {