forked from MapComplete/MapComplete
Fix: show tags that will be deleted with strikethrough in TagHint
This commit is contained in:
parent
14e96094c2
commit
15a481f864
4 changed files with 7 additions and 4 deletions
|
@ -82,9 +82,9 @@ export class Tag extends TagsFilter {
|
|||
if (shorten) {
|
||||
v = Utils.EllipsesAfter(v, 25)
|
||||
}
|
||||
if (v === "" || (v === undefined && currentProperties !== undefined)) {
|
||||
if ((v === "" || v === undefined) && currentProperties !== undefined) {
|
||||
// This tag will be removed if in the properties, so we indicate this with special rendering
|
||||
if (currentProperties !== undefined && (currentProperties[this.key] ?? "") === "") {
|
||||
if ((currentProperties[this.key] ?? "") === "") {
|
||||
// This tag is not present in the current properties, so this tag doesn't change anything
|
||||
return ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue