Skip to content

Commit 3f1f7d3

Browse files
committed
Hotfix null pointer em matchTaskTime
1 parent db9d5d5 commit 3f1f7d3

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "click-clock",
3-
"version": "1.4.2",
3+
"version": "1.4.3",
44
"private": false,
55
"main": "./out/main/index.js",
66
"scripts": {

src/renderer/src/App.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@
161161
const matchTaskTime = (report, taskTimes) => {
162162
taskTimes.forEach((task) => {
163163
Object.entries(task).forEach(([key, value]) => {
164-
report[key].task.timeStatus = value
164+
if (report[key].task) {
165+
report[key].task.timeStatus = value
166+
}
165167
})
166168
})
167169

0 commit comments

Comments
 (0)