Fix loading state issues for spaces pagination
This commit is contained in:
parent
d74e9c4f90
commit
38645d9054
1 changed files with 6 additions and 4 deletions
|
@ -441,7 +441,7 @@ const SpaceHierarchy = ({
|
|||
|
||||
let content: JSX.Element;
|
||||
let loader: JSX.Element;
|
||||
if (loading) {
|
||||
if (loading && !rooms.length) {
|
||||
content = <Spinner />;
|
||||
} else {
|
||||
let manageButtons;
|
||||
|
@ -558,9 +558,11 @@ const SpaceHierarchy = ({
|
|||
/>
|
||||
</>;
|
||||
|
||||
loader = <div ref={loaderRef}>
|
||||
<Spinner />
|
||||
</div>;
|
||||
if (hierarchy.canLoadMore) {
|
||||
loader = <div ref={loaderRef}>
|
||||
<Spinner />
|
||||
</div>;
|
||||
}
|
||||
} else {
|
||||
results = <div className="mx_SpaceHierarchy_noResults">
|
||||
<h3>{ _t("No results found") }</h3>
|
||||
|
|
Loading…
Reference in a new issue