diff --git a/UI/Base/SubtleButton.ts b/UI/Base/SubtleButton.ts index 32931845f..ccc09b156 100644 --- a/UI/Base/SubtleButton.ts +++ b/UI/Base/SubtleButton.ts @@ -78,7 +78,6 @@ export class SubtleButton extends UIElement { }) const loading = new Lazy(() => new Loading(loadingText) ) return new VariableUiElement(state.map(st => { - console.log("State is: ", st) if(st === "idle"){ return button } diff --git a/Utils.ts b/Utils.ts index 370e76f5f..f727cbad9 100644 --- a/Utils.ts +++ b/Utils.ts @@ -151,8 +151,8 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be return res; } - public static NoNull(array: T[]): T[] { - return array?.filter(o => o !== undefined && o !== null) + public static NoNull(array: T[]): NonNullable[] { + return array?.filter(o => o !== undefined && o !== null) } public static Hist(array: string[]): Map {