Skip to content

Commit

Permalink
fix undefined access error
Browse files Browse the repository at this point in the history
  • Loading branch information
Skaiir committed Nov 23, 2023
1 parent df8363e commit 108240d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export default function Taglist(props) {
return (
<div class={ classNames('fjs-taglist-tag', { 'fjs-disabled': disabled, 'fjs-readonly': readonly }) } onMouseDown={ (e) => e.preventDefault() }>
<span class="fjs-taglist-tag-label">
{ valueToOptionMap[v].label }
{ valueToOptionMap[v] ? valueToOptionMap[v].label : undefined }
</span>
{ (!disabled && !readonly) && <button
type="button"
Expand Down

0 comments on commit 108240d

Please sign in to comment.