fix(resolve): continue handling state values after removal
This commit is contained in:
parent
b18d6f340e
commit
3a3facb282
|
@ -143,9 +143,10 @@ export function resolveLabels(options: ResolveInput): ResolveResult {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (checkLabelRules(combinedValue)) {
|
if (checkLabelRules(combinedValue)) {
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let removed = false;
|
||||||
for (const become of value.becomes) {
|
for (const become of value.becomes) {
|
||||||
if (become.matches.every((l) => activeLabels.has(l.name))) {
|
if (become.matches.every((l) => activeLabels.has(l.name))) {
|
||||||
checkLabelRules({
|
checkLabelRules({
|
||||||
|
@ -161,12 +162,17 @@ export function resolveLabels(options: ResolveInput): ResolveResult {
|
||||||
effect: ChangeVerb.REMOVED,
|
effect: ChangeVerb.REMOVED,
|
||||||
label: name,
|
label: name,
|
||||||
});
|
});
|
||||||
|
removed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (removed) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
activeValue = name;
|
activeValue = name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue