fix: admin/internet: possible duplicates in Address/Change
Massimo Melina committed
Jun 9, 2025 at 12:14 UTC
c59113f4841876e388499fdcd2692bfea64baadd
1 file changed
+1
-1
admin/src/FileForm.ts
+1
-1
@@ -416,7 +416,7 @@ export async function changeBaseUrl() {
416
const urls: string[] = res.urls.https || res.urls.http
417
const domainsFromRoots = Object.keys(roots).map(x => x.split('|')).flat().filter(x => !/[*?]/.test(x))
418
const proto = splitAt('//', urls[0])[0] + '//'
419
- urls.push(...domainsFromRoots.map(x => proto + x))
419
+ urls.push(..._.difference(domainsFromRoots.map(x => proto + x), urls))
420
const { close } = newDialog({
421
title: "Main address",
422
Content() {