Skip to content

Commit

Permalink
fix (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 authored Jul 12, 2024
1 parent 9479613 commit f83054d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Forms/Components/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function getUsers(): Collection

public function getOrganization(): Collection
{
return collect([])->push(['name' => $this->getRecord()->organization->name, 'url' => OrganizationResource::getUrl('view', $this->getRecord()->organization)]);
return collect([])->push(['name' => $this->getRecord()->organization?->name, 'url' => OrganizationResource::getUrl('view', $this->getRecord()->organization)]);
}

public function getProject(): Collection
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,6 @@ public function getModifiedField(mixed $value): ?string
$value = $value ? __('field.boolean.true') : __('field.boolean.false');
}

return $value;
return (string) $value;
}
}
2 changes: 1 addition & 1 deletion app/Services/OrganizationBadge.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function updateOrganizationBadge(Organization $organization): void
->with('badges')
->first();

if (! $badgeCategory->badges) {
if (! $badgeCategory?->badges) {
return;
}

Expand Down

0 comments on commit f83054d

Please sign in to comment.