Ver código fonte

Predefined Ipset lists not loading #3552 (#3557)

Jaap Marcus 2 anos atrás
pai
commit
493b12896f
1 arquivos alterados com 2 adições e 3 exclusões
  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
 	// 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
 	// Add IP lists to the "Data Source" select
 	addIPListsToSelect(dataSourceSelect, Alpine.store('globals').BLACKLIST, blacklistIpLists);
 	addIPListsToSelect(dataSourceSelect, Alpine.store('globals').BLACKLIST, blacklistIpLists);
@@ -34,6 +34,5 @@ function addOption(element, text, value, disabled) {
 	if (disabled) {
 	if (disabled) {
 		option.disabled = true;
 		option.disabled = true;
 	}
 	}
-
 	element.append(option);
 	element.append(option);
 }
 }