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> {
|
class _SessionsState extends State<Sessions> {
|
||||||
Future<dynamic> loadSessions() async {
|
Future<dynamic> loadSessions() async {
|
||||||
|
try {
|
||||||
var session = await getSession();
|
var session = await getSession();
|
||||||
var data = await getSessions(session);
|
var data = await getSessions(session);
|
||||||
return data;
|
return data;
|
||||||
|
} catch(e) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
Loading…
Reference in a new issue