handle empty search query
This commit is contained in:
parent
46edb3e10c
commit
ec133e8ea2
|
@ -7,6 +7,13 @@ export default {
|
|||
const decodedCursor = decodeCursor(cursor)
|
||||
let sitems
|
||||
|
||||
if (!query) {
|
||||
return {
|
||||
items: [],
|
||||
cursor: null
|
||||
}
|
||||
}
|
||||
|
||||
const whatArr = []
|
||||
switch (what) {
|
||||
case 'posts':
|
||||
|
|
Loading…
Reference in New Issue