Skip to content

Commit

Permalink
fix: undefined tags in field when editing
Browse files Browse the repository at this point in the history
  • Loading branch information
coatezy committed Oct 9, 2024
1 parent 7557440 commit 851affa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/javascript/js/controllers/fields/tags_field_helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ export function tagTemplate(tagData) {
// eslint-disable-next-line eqeqeq
(item) => item.value == tagData.value,
)
const possibleLabel = possibleSuggestion
const possibleLabel = possibleSuggestion.label
? possibleSuggestion.label
: tagData.value
: tagData.value;

return `
<tag title="${tagData.value}"
Expand Down

0 comments on commit 851affa

Please sign in to comment.