Fix sessions page bug
This commit is contained in:
parent
afd4a002d9
commit
e3c6997245
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue