Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined array key "type" when removing blocks from the page #144

Closed
webspilka opened this issue Mar 7, 2024 · 3 comments
Closed

Undefined array key "type" when removing blocks from the page #144

webspilka opened this issue Mar 7, 2024 · 3 comments

Comments

@webspilka
Copy link

hi
my stacktrace: https://flareapp.io/share/v5pba3lP

I use
filament v3.2.44
livewire/liveire v3.4.7
spatie/laravel-translatable v.6.6.2
z3d0x/filament-fabricator v2.1.1
filament/spatie-laravel-translatable-plugin v3.2.44

I was so happy when I connected everything and the translation worked. But after a while I found the problem.
Unfortunately, removing blocks from the page does not work

When I delete block and push save, I get error

Undefined array key "type"
Screenshot 2024-03-07 at 13 27 47
@webspilka webspilka changed the title Undefined array key "type" Undefined array key "type" when removing blocks from the page Mar 7, 2024
@webspilka
Copy link
Author

webspilka commented Mar 12, 2024

At first, I thought the issue arose due to the plugin "filament/spatie-laravel-translatable-plugin": "^3.2", being connected. However, upon disconnecting thtis plugin, I encountered the same problem.

I began testing different scenarios and found that everything hinges on the Filament\Forms\Components\RichEditor. If the RichEditor field contains text, then upon deleting the block and saving the page, I receive an error. If I first clear the RichEditor of text and then delete the block, everything works without issues.

rr2.mov

I see that a similar issue was present before: filamentphp/filament#7957

@zepfietje
Copy link

filamentphp/filament#11833

@Z3d0X
Copy link
Owner

Z3d0X commented Mar 14, 2024

Issue addressed in filament core

@Z3d0X Z3d0X closed this as not planned Won't fix, can't repro, duplicate, stale Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants