Skip to content

Commit

Permalink
Don't generate empty tags when clearing semantics in picker (#806)
Browse files Browse the repository at this point in the history
Fixes #690.

Signed-off-by: Yannick Schaus <[email protected]>
  • Loading branch information
ghys committed Jan 16, 2021
1 parent ea7631e commit 64020cd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default {
this.semanticClass = value
}
this.item.tags = this.item.tags.filter((t) => !this.semanticType(t) && !this.isSemanticPropertyTag(t))
if (!value) return
this.item.tags.push(this.semanticClass)
if (this.semanticType(this.semanticClass) === 'Point' && this.semanticProperty.length) {
this.item.tags.push(this.semanticProperty)
Expand Down

0 comments on commit 64020cd

Please sign in to comment.