Fix sessions page bug

This commit is contained in:
Moe Poi ~ 2022-05-23 01:26:05 +07:00
parent afd4a002d9
commit e3c6997245

View file

@ -15,9 +15,13 @@ class Sessions extends StatefulWidget {
class _SessionsState extends State<Sessions> {
Future<dynamic> loadSessions() async {
var session = await getSession();
var data = await getSessions(session);
return data;
try {
var session = await getSession();
var data = await getSessions(session);
return data;
} catch(e) {
return [];
}
}
@override