change(ui): check for sessions and loading state

This commit is contained in:
Shekar Siri 2023-06-26 11:36:24 +02:00
parent 8054abfb91
commit 9e8ea85060

View file

@ -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 () => {