fix(settings): do not enforce allowMultiple set for selection settings

This commit is contained in:
2026-06-04 15:08:33 +02:00
committed by Gitea
parent ecf9074522
commit 970f4a74d1
@@ -69,7 +69,7 @@ export const validateEntry = function validateEntry (entry, path) {
} }
if (entry.type === 'selection') { if (entry.type === 'selection') {
validateSelectionOptions(entry.options, path); validateSelectionOptions(entry.options, path);
if (typeof entry.allowMultiple !== 'boolean') { if (typeof entry.allowMultiple !== 'boolean' && entry.allowMultiple) {
throw new Error(`[settings] "${path}.allowMultiple" must be a boolean`); throw new Error(`[settings] "${path}.allowMultiple" must be a boolean`);
} }
} }