Skip to content

Commit

Permalink
D8CORE-6715
Browse files Browse the repository at this point in the history
  • Loading branch information
imonroe committed Oct 3, 2023
1 parent 47c11ea commit f84b48c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public function view(array &$build, ParagraphInterface $paragraph, EntityViewDis
$build['su_list_view']['#markup'] = $empty_message;
}
if ($paragraph->getBehaviorSetting('list_paragraph', 'hide_empty')) {
// Unset everything, but keep the cache for any cache tags and keys.
$build = ['#cache' => $build['#cache']];
// D8CORE-6715: If the list is empty, the paragraph is uneditable and orphaned
unset($build['su_list_button'], $build['su_list_description'], $build['su_list_headline'], $build['su_list_view']);
}
}

Expand Down

0 comments on commit f84b48c

Please sign in to comment.