From 38b9bd71eb3c21dbc4fef17f96899dc7732d9a17 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Fri, 21 Jul 2023 15:00:56 +0800 Subject: Suppress error when dueAt == null by setting it to "" --- contents/ui/main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contents/ui/main.qml') 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()), -- cgit v1.2.3