1
0
Fork 0

fix(resolve): continue handling state values after removal

This commit is contained in:
ssube 2020-08-17 08:39:53 -05:00 committed by BZ Libby
parent b18d6f340e
commit 3a3facb282
1 changed files with 7 additions and 1 deletions

View File

@ -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;
} }
} }