Fix compile errors

This commit is contained in:
Thomas Nordquist
2019-03-02 19:57:29 +01:00
parent a32810417d
commit 71d606d7cd
5 changed files with 54 additions and 134 deletions

View File

@@ -51,13 +51,13 @@ class TreeNodeSubnodes extends React.Component<Props, State> {
}
private renderMore() {
this.renderMoreAnimationFrame = window.requestIdleCallback(() => {
this.renderMoreAnimationFrame = (window as any).requestIdleCallback(() => {
this.setState({ ...this.state, alreadyAdded: this.state.alreadyAdded * 1.5 })
}, { timeout: 500 })
}
public componentWillUnmount() {
window.cancelIdleCallback(this.renderMoreAnimationFrame)
(window as any).cancelIdleCallback(this.renderMoreAnimationFrame)
}
public render() {