Skip to content

Commit

Permalink
revert to config() instead of $component variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Eelco committed Feb 4, 2024
1 parent d96dd07 commit a7f2120
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Forms/Uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ protected function setUp(): void
'ext' => $extension,
];

if($component->isTenantAware() && Filament::hasTenancy()) {
$data[$component->tenantOwnershipRelationshipName() . '_id'] = Filament::getTenant()->id;
if(config('curator.is_tenant_aware') && Filament::hasTenancy()) {
$data[config('curator.tenant_ownership_relationship_name') . '_id'] = Filament::getTenant()->id;
}

return $data;
Expand Down

0 comments on commit a7f2120

Please sign in to comment.