mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 16:00:51 +00:00
fix: Remove duplicate domains in the domain list initialization (#10260)
This commit is contained in:
@@ -172,6 +172,7 @@ const updateDomainsString = () => {
|
||||
const initDomainList = (domainsStr: string) => {
|
||||
if (domainsStr) {
|
||||
domainList.value = domainsStr.split('\n').filter((domain) => domain.trim() !== '');
|
||||
domainList.value = Array.from(new Set(domainList.value));
|
||||
if (domainList.value.length === 0) {
|
||||
domainList.value = [''];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user