mirror of
https://github.com/dzeiocom/markblog.git
synced 2025-06-07 16:49:55 +00:00
Fixed index errors
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
42b7ef1b2c
commit
b2f9e98ec1
@ -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,
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user