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) )
|
const loading = new Lazy(() => new Loading(loadingText) )
|
||||||
return new VariableUiElement(state.map(st => {
|
return new VariableUiElement(state.map(st => {
|
||||||
console.log("State is: ", st)
|
|
||||||
if(st === "idle"){
|
if(st === "idle"){
|
||||||
return button
|
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;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static NoNull<T>(array: T[]): T[] {
|
public static NoNull<T>(array: T[]): NonNullable<T>[] {
|
||||||
return array?.filter(o => o !== undefined && o !== null)
|
return <any> array?.filter(o => o !== undefined && o !== null)
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Hist(array: string[]): Map<string, number> {
|
public static Hist(array: string[]): Map<string, number> {
|
||||||
|
|
Loading…
Reference in a new issue