mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-02-13 16:13:24 +01:00
fix typeerror in search because of wrong js-sdk t.ds
This commit is contained in:
parent
3e756b64c8
commit
d8564b55d1
1 changed files with 3 additions and 3 deletions
|
@ -55,9 +55,9 @@ const parseSearchResult = (result: ISearchResponse): SearchResult => {
|
|||
const roomEvents = result.search_categories.room_events;
|
||||
|
||||
const searchResult: SearchResult = {
|
||||
nextToken: roomEvents.next_batch,
|
||||
highlights: roomEvents.highlights,
|
||||
groups: groupSearchResult(roomEvents.results),
|
||||
nextToken: roomEvents?.next_batch,
|
||||
highlights: roomEvents?.highlights ?? [],
|
||||
groups: groupSearchResult(roomEvents?.results ?? []),
|
||||
};
|
||||
|
||||
return searchResult;
|
||||
|
|
Loading…
Reference in a new issue