fixed search not working on first click

This commit is contained in:
Kim, Jimin 2021-08-10 07:21:29 +09:00
parent 9f9f113a0e
commit 2c2f586420

View file

@ -202,7 +202,7 @@ function _Search() {
try { try {
const _postCards: unknown[] = [] const _postCards: unknown[] = []
for (const res of index.search( for (const res of index.search(
query.query searchInput
)) { )) {
const postData = map.posts[res.ref] const postData = map.posts[res.ref]