Fix tests, fix long load by offloading minimap detection to generateLayerOverview

This commit is contained in:
Pieter Vander Vennet 2022-01-18 18:12:24 +01:00
parent d7f8ff01d5
commit cbc7fa6553
6 changed files with 56 additions and 33 deletions

View file

@ -137,7 +137,7 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
}
public static NoNull<T>(array: T[]): T[] {
return array.filter(o => o !== undefined && o !== null)
return array?.filter(o => o !== undefined && o !== null)
}
public static Hist(array: string[]): Map<string, number> {