diff options
author | Frederick Yin <fkfd@fkfd.me> | 2023-07-21 15:00:56 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2023-07-21 15:00:56 +0800 |
commit | 38b9bd71eb3c21dbc4fef17f96899dc7732d9a17 (patch) | |
tree | 8eef8939a5927f54166ee4bc098b4472e409a00b | |
parent | 07926e1d43dda6e6acb64c691ceefb818da87ba7 (diff) |
Suppress error when dueAt == null by setting it to ""
-rw-r--r-- | contents/ui/main.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contents/ui/main.qml b/contents/ui/main.qml index da80c38..0bff9ad 100644 --- a/contents/ui/main.qml +++ b/contents/ui/main.qml @@ -92,7 +92,7 @@ Item { activityId: assignment.id, course: course.code, title: assignment.name, - dueAt: assignment.due_at, + dueAt: assignment.due_at || "", // if null, use empty string to suppress errors submitted: submission.workflow_state != "unsubmitted", url: assignment.html_url, important: plasmoid.configuration.importantAssignments.includes(assignment.id.toString()), |