fix unclaimed packing lists

This commit is contained in:
omair saleh
2022-02-23 13:42:12 +08:00
parent 5db4b715e2
commit 97c900447f
+1 -1
View File
@@ -17,7 +17,7 @@ class PackageResource extends JsonResource
public function toArray($request)
{
$originalPackingList = $this->packingList->owner instanceof PackingList ? $this->packingList->owner : $this->packingList;
$originalPackingList = $this->packingList->owner instanceof PackingList ? $this->packingList->owner->owner : $this->packingList->owner;
return [
'id' => $this->id,