Skip to content

Commit

Permalink
check if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioMendolia committed Oct 13, 2023
1 parent 4a3a110 commit 67f7757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/components/InlineEditBook.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@

{% if not book.verified and suggestions[field] is defined and is_granted('EDIT', book) %}
{% for key,suggestion in suggestions[field] %}
{% if suggestion != attribute(book, "get"~field) %}
{% if suggestion != attribute(book, "get"~field) and suggestion not in attribute(book, "get"~field) %}
<button
class="btn btn-outline-secondary btn-sm p-1"
data-action="live#action"
Expand Down

0 comments on commit 67f7757

Please sign in to comment.