generated from Seekra/repository-template
fix(settings): do not enforce allowMultiple set for selection settings
This commit is contained in:
@@ -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`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user