Fixed index errors

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2020-01-05 00:59:27 +01:00
parent 42b7ef1b2c
commit b2f9e98ec1
No known key found for this signature in database
GPG Key ID: B143FF27EF555D16

View File

@ -99,7 +99,7 @@ export default class Page extends Component<Props, States> {
)
}
private async onQuery(query: string, recent: boolean = true) {
private onQuery = async (query: string, recent: boolean = true) => {
// console.log(`query: ${query}`)
const t = elements.filter( (el) => {
return el.title.toLowerCase().includes(query.toLowerCase())
@ -118,7 +118,7 @@ export default class Page extends Component<Props, States> {
})
}
private async onHeight(height: number) {
private onHeight = async (height: number) => {
this.setState({
asideHeight: height,
})