fixed product list

This commit is contained in:
Edward Yang 2022-08-16 09:18:35 +08:00
parent 746376c9f4
commit fe9f91e970
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class ProductResource extends JsonResource
'active' => $this->active,
'position' => $this->position,
'created_at' => time_format($this->created_at),
'deleted_at' => time_format($this->deleted_at),
'deleted_at' => $this->deleted_at ? time_format($this->deleted_at) : '',
'url_edit' => admin_route('products.edit', $this->id),
];