Fixed [ch15086] - [object object] in companies date displays

This commit is contained in:
snipe 2020-09-03 19:40:17 -07:00
parent 0eeeb24cae
commit 249b9b7509
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC
2 changed files with 4 additions and 2 deletions

View file

@ -82,12 +82,14 @@ class CompanyPresenter extends Presenter
"sortable" => true,
"visible" => false,
"title" => trans('general.updated_at'),
"formatter" => 'createdAtFormatter',
],[
"field" => "created_at",
"searchable" => false,
"sortable" => true,
"visible" => false,
"title" => trans('general.created_at'),
"formatter" => 'createdAtFormatter',
],[
"field" => "actions",
"searchable" => false,

View file

@ -391,8 +391,8 @@
function createdAtFormatter(value) {
if ((value) && (value.date)) {
return value.date;
if ((value) && (value.formatted)) {
return value.formatted;
}
}