Fix last edited in formresource
This commit is contained in:
parent
b6c9bfe1f8
commit
85b32cb0ea
|
@ -46,7 +46,7 @@ class FormResource extends JsonResource
|
|||
'notification_emails' => $this->notification_emails,
|
||||
'slack_webhook_url' => $this->slack_webhook_url,
|
||||
'removed_properties' => $this->removed_properties,
|
||||
'last_edited_human' => $this->updated_at->diffForHumans()
|
||||
'last_edited_human' => $this->updated_at?->diffForHumans()
|
||||
] : [];
|
||||
|
||||
$baseData = $this->getFilteredFormData(parent::toArray($request), $this->userIsFormOwner());
|
||||
|
|
Loading…
Reference in New Issue