Simplify image detection

This commit is contained in:
pietervdvn 2022-02-17 23:56:04 +01:00
parent 64bfcccbdc
commit 701050c93b

View file

@ -168,10 +168,9 @@ export default class TagRenderingQuestion extends Combine {
const ff = TagRenderingQuestion.GenerateFreeform(state, configuration, applicableUnit, tagsSource, feedback);
const hasImages = applicableMappings.filter(mapping => mapping.then.ExtractImages().length > 0).length > 0
const hasImages = applicableMappings.findIndex(mapping => mapping.then.icon !== undefined) >= 0
let inputEls: InputElement<TagsFilter>[];
const ifNotsPresent = applicableMappings.some(mapping => mapping.ifnot !== undefined)
function allIfNotsExcept(excludeIndex: number): TagsFilter[] {