Improve typing, remove obsolete console.log
This commit is contained in:
parent
1ec2678e49
commit
eee8f1bf33
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
4
Utils.ts
4
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<T>(array: T[]): T[] {
|
||||
return array?.filter(o => o !== undefined && o !== null)
|
||||
public static NoNull<T>(array: T[]): NonNullable<T>[] {
|
||||
return <any> array?.filter(o => o !== undefined && o !== null)
|
||||
}
|
||||
|
||||
public static Hist(array: string[]): Map<string, number> {
|
||||
|
|
Loading…
Reference in a new issue