Skip to content

Commit

Permalink
Merge pull request #2125 from MuhammadUmer44/Not-Selected-Labels-Disp…
Browse files Browse the repository at this point in the history
…layed-In-Indexes

Fixed [Blueprint] : `Not Selected` Labels Displayed  In `Indexes` When Adding Multiple Attributes fields
  • Loading branch information
Rassl authored Sep 13, 2024
2 parents 66f7fd2 + 05f302b commit 28941e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export const Editor = ({
const attributesValue = watch('attributes')

const attributes: Attribute[] = useMemo(
() => (isAttributeArray(attributesValue) ? attributesValue : []),
() => (isAttributeArray(attributesValue) ? attributesValue.filter((attr) => attr.key.trim() !== '') : []),
[attributesValue],
)

Expand Down

0 comments on commit 28941e4

Please sign in to comment.