Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
RhysLees committed Mar 26, 2024
1 parent b54d6a0 commit 7f54526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Data/TaskDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct(
public string $description,
public string $previewType,
public string $id,
public Note $notes,
public ?Note $notes,
public Collection $references,
public Collection $checklist,
) {
Expand All @@ -36,7 +36,7 @@ public static function fromData(array $data): self
description: Arr::get($data, 'description'),
previewType: Arr::get($data, 'previewType'),
id: Arr::get($data, 'id'),
notes: Note::fromData(Arr::get($data, 'notes')),
notes: Arr::has($data, 'notes') ? Note::fromData(Arr::get($data, 'notes')) : null,
references: $references,
checklist: $checklist
);
Expand Down

0 comments on commit 7f54526

Please sign in to comment.