Fix last edited in formresource
This commit is contained in:
parent
b6c9bfe1f8
commit
85b32cb0ea
|
@ -45,8 +45,8 @@ class FormResource extends JsonResource
|
||||||
'visibility' => $this->visibility,
|
'visibility' => $this->visibility,
|
||||||
'notification_emails' => $this->notification_emails,
|
'notification_emails' => $this->notification_emails,
|
||||||
'slack_webhook_url' => $this->slack_webhook_url,
|
'slack_webhook_url' => $this->slack_webhook_url,
|
||||||
'removed_properties' => $this->removed_properties,
|
'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());
|
$baseData = $this->getFilteredFormData(parent::toArray($request), $this->userIsFormOwner());
|
||||||
|
|
Loading…
Reference in New Issue