Skip to content

Commit 697dc00

Browse files
committed
Allow pass parameter to schema component(s)
1 parent a56bf09 commit 697dc00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/components/component-container.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ class="filament-component-container gap-6"
6262
@php
6363
$data = $getChildComponentData($key);
6464
65-
if ($filamentComponent instanceof \Filament\Resources\Pages\EditRecord) {
66-
$data = array_merge([
65+
if ($filamentComponent instanceof \Filament\Resources\Pages\EditRecord && !isset($data['record'])) {
66+
$data = array_merge($data, [
6767
'record' => $filamentComponent->record?->getKey(),
6868
]);
6969
}

0 commit comments

Comments
 (0)