Skip to content

Commit

Permalink
FIX - Impossible to access an attribute ("count") on a null variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBrauner committed Jan 10, 2024
1 parent 7a87ca9 commit fca5587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/views/form/image_theme.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<button
data-braunstetter--media-bundle--collection-target="addButton"
data-action="braunstetter--media-bundle--collection#addItem"
{% if max_items <= value.count %}class="hidden"{% endif %}
{% if value is not null and max_items <= value.count %}class="hidden"{% endif %}
>
{{ source('@Media/images/svg/icon-plus.svg') }}
</button>
Expand Down

0 comments on commit fca5587

Please sign in to comment.