Fix incorrect assumptions about required fields in /search response (#12575)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
ceafad32f9
commit
7e42ffb150
2 changed files with 7 additions and 7 deletions
|
@ -159,7 +159,7 @@ export const RoomSearchView = forwardRef<ScrollPanel, Props>(
|
|||
}, []); // eslint-disable-line react-hooks/exhaustive-deps
|
||||
|
||||
// show searching spinner
|
||||
if (results?.count === undefined) {
|
||||
if (results === null) {
|
||||
return (
|
||||
<div
|
||||
className="mx_RoomView_messagePanel mx_RoomView_messagePanelSearchSpinner"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue