handle empty search query

This commit is contained in:
keyan 2022-10-25 17:30:54 -05:00
parent 46edb3e10c
commit ec133e8ea2
1 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,13 @@ export default {
const decodedCursor = decodeCursor(cursor)
let sitems
if (!query) {
return {
items: [],
cursor: null
}
}
const whatArr = []
switch (what) {
case 'posts':