Themes: add validation for duplicate presets, fix #1582

This commit is contained in:
Pieter Vander Vennet 2023-09-24 00:25:10 +02:00
parent fc6160c760
commit 2e8a3311e7
5 changed files with 83 additions and 18 deletions

View file

@ -387,7 +387,7 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
return newArr
}
public static Dupiclates(arr: string[]): string[] {
public static Duplicates(arr: string[]): string[] {
if (arr === undefined) {
return undefined
}