Skip to content
Snippets Groups Projects
Commit c5b4b187 authored by Jordan Graham's avatar Jordan Graham Committed by Justin Toupin
Browse files

Issue #3273387 by pixelwhip, COBadger, jrockowitz: Layout Paragraphs Builder...

Issue #3273387 by pixelwhip, COBadger, jrockowitz: Layout Paragraphs Builder Field Formatter causes error on Layout Builder display mode management screen
parent c348665f
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ class LayoutParagraphsBuilderFormatter extends LayoutParagraphsFormatter impleme
$definition = $items->getFieldDefinition();
$layout = new LayoutParagraphsLayout($items, $this->getSettings() + ['reference_field_view_mode' => $this->viewMode]);
if (!$entity->id() || !$this->layoutParagraphsBuilderAccess->access($this->account, $layout)->isAllowed()) {
if (!$entity->id() || !$this->layoutParagraphsBuilderAccess->access($this->account, $layout)->isAllowed() || $entity->in_preview) {
return $elements['#root_components'];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment