Fix crash after save
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
9833ef4885
commit
cf9c9b4cb4
|
@ -31,7 +31,7 @@ class Task {
|
|||
description = json['description'],
|
||||
text = json['text'],
|
||||
done = json['done'],
|
||||
owner = User.fromJson(json['createdBy']);
|
||||
owner = json['createdBy'].toString() == "null" ? null : User.fromJson(json['createdBy']); // There has to be a better way of doing this...
|
||||
|
||||
toJSON() => {
|
||||
'id': id,
|
||||
|
|
Reference in New Issue