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)) {
break;
continue;
}
let removed = false;
for (const become of value.becomes) {
if (become.matches.every((l) => activeLabels.has(l.name))) {
checkLabelRules({
@ -161,12 +162,17 @@ export function resolveLabels(options: ResolveInput): ResolveResult {
effect: ChangeVerb.REMOVED,
label: name,
});
removed = true;
}
break;
}
}
if (removed) {
continue;
}
activeValue = name;
}
}