mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-11 18:39:45 +00:00
Fix jobs screen failing to draw when no jobs
This commit is contained in:
parent
ae4b884c81
commit
ad55b204cf
|
@ -12,9 +12,13 @@ class ServerJobsState extends ServerInstallationDependendState {
|
||||||
final String? migrationJobUid;
|
final String? migrationJobUid;
|
||||||
|
|
||||||
List<ServerJob> get serverJobList {
|
List<ServerJob> get serverJobList {
|
||||||
final List<ServerJob> list = _serverJobList;
|
try {
|
||||||
list.sort((final a, final b) => b.createdAt.compareTo(a.createdAt));
|
final List<ServerJob> list = _serverJobList;
|
||||||
return list;
|
list.sort((final a, final b) => b.createdAt.compareTo(a.createdAt));
|
||||||
|
return list;
|
||||||
|
} on UnsupportedError {
|
||||||
|
return _serverJobList;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool get hasRemovableJobs => serverJobList.any(
|
bool get hasRemovableJobs => serverJobList.any(
|
||||||
|
|
Loading…
Reference in a new issue