Fix last edited in formresource

This commit is contained in:
JhumanJ 2022-11-01 14:46:31 +01:00
parent b6c9bfe1f8
commit 85b32cb0ea
1 changed files with 2 additions and 2 deletions

View File

@ -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());