From 2bc87b5e9915efb9452ea12f0c7779be1ffac985 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 26 Jun 2024 11:23:21 +0300 Subject: [PATCH] search-fix --- src/lib/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/api.ts b/src/lib/api.ts index 3e401095..56eb6e37 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -69,7 +69,7 @@ export const loadShoutsSearch = (options: QueryLoad_Shouts_SearchArgs) => { const page = `${options.offset || 0}-${(options?.limit || 0) + (options.offset || 0)}` return cache(async () => { const resp = await defaultClient.query(loadShoutsSearchQuery, { ...options }).toPromise() - const result = resp?.data?.get_shout as Shout + const result = resp?.data?.load_shouts_search as Shout if (result) return result }, `search-${options.text}-${page}`) }