mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-02-22 21:23:09 +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 roomEvents = result.search_categories.room_events;
|
||||||
|
|
||||||
const searchResult: SearchResult = {
|
const searchResult: SearchResult = {
|
||||||
nextToken: roomEvents.next_batch,
|
nextToken: roomEvents?.next_batch,
|
||||||
highlights: roomEvents.highlights,
|
highlights: roomEvents?.highlights ?? [],
|
||||||
groups: groupSearchResult(roomEvents.results),
|
groups: groupSearchResult(roomEvents?.results ?? []),
|
||||||
};
|
};
|
||||||
|
|
||||||
return searchResult;
|
return searchResult;
|
||||||
|
|
Loading…
Reference in a new issue