Просмотр исходного кода

Predefined Ipset lists not loading #3552 (#3557)

Jaap Marcus 2 лет назад
Родитель
Сommit
e98198f51f
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      web/js/src/ipListDataSource.js

+ 2 - 3
web/js/src/ipListDataSource.js

@@ -9,8 +9,8 @@ export default function handleIpListDataSource() {
 	}
 
 	// Parse IP lists from HTML and sort them alphabetically
-	const countryIpLists = parseAndSortIpLists(dataSourceSelect.dataset.countryIpLists);
-	const blacklistIpLists = parseAndSortIpLists(dataSourceSelect.dataset.blacklistIpLists);
+	const countryIpLists = parseAndSortIpLists(dataSourceSelect.dataset.countryIplists);
+	const blacklistIpLists = parseAndSortIpLists(dataSourceSelect.dataset.blacklistIplists);
 
 	// Add IP lists to the "Data Source" select
 	addIPListsToSelect(dataSourceSelect, Alpine.store('globals').BLACKLIST, blacklistIpLists);
@@ -34,6 +34,5 @@ function addOption(element, text, value, disabled) {
 	if (disabled) {
 		option.disabled = true;
 	}
-
 	element.append(option);
 }