- Issue created by @kwiseman
Disabling Layout Builder Library for a content type throws a field exception (Drupal\Core\Field\FieldException). This issue occurred for me on a local Drupal 10.2.5 site using the standard profile, Layout Builder Library 8.x-1.0-beta4, and the Admin Toolbar module with no content nodes, a site with only core 10.2.5 and Layout Builder Library 8.x-1.0-beta4, and a heavily customized Drupal 10.2.5 site.
When I click the back button in my browser after getting the error page, I see the usual success message that the settings have been saved, and going to the "manage fields" page shows that the `layout_selection` field has actually been deleted. I've attached a screenshot of the error page.
Also, it seems like the error is happening because of or around line 91 of layout_library.module (the `$field->delete()` operation), but I'm not sure.
Active
Code