change(ui): check for sessions and loading state
This commit is contained in:
parent
8054abfb91
commit
9e8ea85060
1 changed files with 5 additions and 5 deletions
|
|
@ -99,11 +99,11 @@ function SessionList(props: Props) {
|
|||
const { scrollY } = props;
|
||||
window.scrollTo(0, scrollY);
|
||||
|
||||
// if (total === 0) {
|
||||
// setTimeout(() => {
|
||||
// props.fetchSessions(null, true);
|
||||
// }, 300);
|
||||
// }
|
||||
if (total === 0 && !loading) {
|
||||
setTimeout(() => {
|
||||
props.fetchSessions(null, true);
|
||||
}, 300);
|
||||
}
|
||||
// props.fetchMetadata();
|
||||
|
||||
return () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue