Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
make Clockify more robust with tags
Browse files Browse the repository at this point in the history
  • Loading branch information
godbout committed Jun 29, 2022
1 parent bb5d3ab commit 035d680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Clockify.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ protected function buildPastTimerObject($clockifyTimer, $projects, $tags)
$pastTimer['project_name'] = $projects[$clockifyTimer->projectId];
}

if (isset($clockifyTimer->tagIds[0])) {
if (isset($clockifyTimer->tagIds[0]) && isset($tags[$clockifyTimer->tagIds[0]])) {
$pastTimer['tag_id'] = $clockifyTimer->tagIds[0];
$pastTimer['tags'] = $tags[$clockifyTimer->tagIds[0]];
}
Expand Down

0 comments on commit 035d680

Please sign in to comment.