fixed kanban and login views

This commit is contained in:
Benimautner 2022-08-28 01:27:55 +02:00
parent 83e6db9ad6
commit 9161e1fa12
2 changed files with 13 additions and 13 deletions

View File

@ -41,7 +41,7 @@ class Bucket {
createdBy = json['created_by'] == null
? null
: User.fromJson(json['created_by']),
tasks = (json['tasks'] as List<dynamic>)
tasks = (((json['tasks'] == null) ? [] : json['tasks']) as List<dynamic>)
.map((task) => Task.fromJson(task))
.cast<Task>()
.toList();

View File

@ -1,16 +1,16 @@
class Server {
bool caldavEnabled;
bool emailRemindersEnabled;
String frontendUrl;
bool linkSharingEnabled;
String maxFileSize;
String motd;
bool registrationEnabled;
bool taskAttachmentsEnabled;
bool taskCommentsEnabled;
bool totpEnabled;
bool userDeletion;
String version;
bool? caldavEnabled;
bool? emailRemindersEnabled;
String? frontendUrl;
bool? linkSharingEnabled;
String? maxFileSize;
String? motd;
bool? registrationEnabled;
bool? taskAttachmentsEnabled;
bool? taskCommentsEnabled;
bool? totpEnabled;
bool? userDeletion;
String? version;
Server.fromJson(Map<String, dynamic> json)
: