Skip to content

Conversation

@k-yle
Copy link
Collaborator

@k-yle k-yle commented Aug 21, 2025

corresponding PR for ideditor/schema-builder#231

const k = keys[i];
if (discardTags[k] || !entity.tags[k]) {
const v = entity.tags[k];
if (discardTags[k] === true || (typeof discardTags[k] === 'object' && discardTags[k][v]) || !entity.tags[k]) {
Copy link
Member

@tyrasd tyrasd Aug 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw: At first, I was wondering what the || !entity.tags[k] is doing here… Then I realized that this is responsible for actually deleting a tag when one fully clears the value of a tag, e.g. in the raw tag editor (where entity.tags[k] === ''). 😅

@tyrasd tyrasd merged commit ad18b38 into develop Aug 21, 2025
4 checks passed
@tyrasd tyrasd deleted the kh/discard-tags branch August 21, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants