Skip to content

Commit 03a58c4

Browse files
committed
Update OrganisationResource.php
1 parent 95e96e1 commit 03a58c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Resources/OrganisationResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function toArray($request)
1010
{
1111
return [
1212
'id' => $this->id,
13-
'name' => $this->name,
13+
'name' => $this->whenHas('name'),
1414
];
1515
}
1616
}

0 commit comments

Comments
 (0)