diff --git a/app/models/communication/block/template/gallery.rb b/app/models/communication/block/template/gallery.rb index 17d6cfdcad19a63d94b8ee7dc44de3dcd3b3898b..c8adbc7acb61a7ff5be52a55e4bf87bc0d144a6e 100644 --- a/app/models/communication/block/template/gallery.rb +++ b/app/models/communication/block/template/gallery.rb @@ -4,4 +4,7 @@ class Communication::Block::Template::Gallery < Communication::Block::Template:: has_layouts [:grid, :carousel] has_component :description, :rich_text + def empty? + elements.none? + end end