mirror of
https://github.com/dzeiocom/markblog.git
synced 2025-07-28 15:39:50 +00:00
Fixed index errors
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
@ -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}`)
|
// console.log(`query: ${query}`)
|
||||||
const t = elements.filter( (el) => {
|
const t = elements.filter( (el) => {
|
||||||
return el.title.toLowerCase().includes(query.toLowerCase())
|
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({
|
this.setState({
|
||||||
asideHeight: height,
|
asideHeight: height,
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user