#Problem with $getId in filament-schema grid component

3 messages · Page 1 of 1 (latest)

proper kelp
#

I’m currently upgrading a custom plugin from Filament v3 → v4, and I ran into a problem when updating the Blade views.

In v3, the custom component for Infolists used x-filament::grid, but since that no longer exists in v4 (as far as I know), I replaced it with x-filament-schemas::grid.

After that change, I started getting this error inside the custom RepeatableEntry view:

ErrorException
Undefined variable $getId

I don't know why its happening but the issue seems related to the x-filament-schemas::grid component, whenever I remove it, the layout of the repeatable component works.

This is a simplified code snippet:

<x-dynamic-component :component="$getEntryWrapperView()" :entry="$entry">
    <div
        {{
            $attributes->merge([
                'id' => $getId(),
            ])
        }}
    >
        <x-filament-schemas::grid>
            ...
        </x-filament-schemas::grid>
    </div>
</x-dynamic-component>
unique wrenBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

weary hearth
#

Did you fix it ?