Skip to content

fix: preserves all tags when re-selecting the same preset - #12070

Merged
tyrasd merged 1 commit into
developfrom
kh/change-preset-bug
Mar 21, 2026
Merged

tyrasd merged 1 commit into
developfrom
kh/change-preset-bug

Conversation

@k-yle

@k-yle k-yle commented Mar 21, 2026

Copy link
Copy Markdown
Collaborator

Closes #12068

@k-yle
k-yle force-pushed the kh/change-preset-bug branch from 8309726 to e02b8bc Compare March 21, 2026 10:55
@tyrasd tyrasd added the bug-release-blocker An important bug - let's get this fixed in the next release! label Mar 21, 2026
}

if (oldPreset) {
if (oldPreset && (oldPreset.id !== newPreset.id)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

At first glance, I was wondering if it were not slightly more elegant to include this logic on line 17 (depending on whether one would consider a preset as implicitly being also it's own sub-preset), but I think it is also fine to just skip this branch here for this case, as it seems unlikely that the lack of contents in preserveKeys would produce further problems in the future when handling this case.

@tyrasd
tyrasd merged commit 959ca5f into develop Mar 21, 2026
4 checks passed
@k-yle
k-yle deleted the kh/change-preset-bug branch March 22, 2026 23:34

This branch was successfully deployed

1 active deployment
pr-preview-12070 — e02b8bc4 Deployed Mar 21, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-release-blocker An important bug - let's get this fixed in the next release!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reselecting the same preset deletes all known tags

2 participants