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;
|
||||
|
||||
List<ServerJob> get serverJobList {
|
||||
try {
|
||||
final List<ServerJob> list = _serverJobList;
|
||||
list.sort((final a, final b) => b.createdAt.compareTo(a.createdAt));
|
||||
return list;
|
||||
} on UnsupportedError {
|
||||
return _serverJobList;
|
||||
}
|
||||
}
|
||||
|
||||
bool get hasRemovableJobs => serverJobList.any(
|
||||
|
|
Loading…
Reference in a new issue