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

This commit is contained in:
jakob.scheid authored and Gitea committed 2026-06-04 17:27:42 +02:00
1 parent ecf9074522
commit 970f4a74d1
1 file changed
+1 -1
@@ -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`);
} }
} }