diff --git a/api/resolvers/search.js b/api/resolvers/search.js index 5b7b3569..8dafc8e0 100644 --- a/api/resolvers/search.js +++ b/api/resolvers/search.js @@ -7,6 +7,13 @@ export default { const decodedCursor = decodeCursor(cursor) let sitems + if (!query) { + return { + items: [], + cursor: null + } + } + const whatArr = [] switch (what) { case 'posts':