diff --git a/src/Services/Toggl.php b/src/Services/Toggl.php index adcd6575..a8b45d1e 100644 --- a/src/Services/Toggl.php +++ b/src/Services/Toggl.php @@ -164,7 +164,7 @@ protected function buildPastTimerObject($togglTimer, $projects) if (isset($togglTimer->pid)) { $pastTimer['project_id'] = $togglTimer->pid; - $pastTimer['project_name'] = $projects[$togglTimer->pid]; + $pastTimer['project_name'] = $projects[$togglTimer->pid] ?? $togglTimer->pid; } if (isset($togglTimer->tags)) {