Fix build

This commit is contained in:
Pieter Vander Vennet 2025-06-06 21:40:22 +02:00
parent 5fa524cc92
commit fcb5cd46f8

View file

@ -262,7 +262,7 @@ export class AddQuestionBox extends DesugaringStep<LayerConfigJson> {
}
const usedLabels: Set<string> = new Set()
usedLabels.add("hidden") // hidden is a bit a special one. As we don't show it, we consider it 'consumed' too
for (const { blacklist, whitelist } of questionBoxes) {
if (whitelist.length > 0 && blacklist.length == 0) {
// All questions from "whitelist" are guaranteed to be used here
@ -305,7 +305,7 @@ export class AddQuestionBox extends DesugaringStep<LayerConfigJson> {
context.err(
"Could not calculate a non-ambiguous leftover questions block. A {questions()}-special rendering is found which has both a whitelist and a blacklist; where the blacklist was not fully consumed by other tagRenderings\n\t" +
JSON.stringify(toEvaluate),
JSON.stringify(toEvaluate)+"\n\tConsumed labels are: "+Array.from(usedLabels).join(", "),
)
}
@ -313,7 +313,7 @@ export class AddQuestionBox extends DesugaringStep<LayerConfigJson> {
/* At this point, we know which question labels are not yet handled and which already are handled, and we
* know there is no previous catch-all questions
*/
usedLabels.add("hidden")
const question: QuestionableTagRenderingConfigJson = {
id: "leftover-questions",
labels: ["ignore-docs", "added_by_default"],