no uniqueness check on list of enums

This commit is contained in:
Matt Hill
2020-12-07 15:24:31 -07:00
committed by Keagan McClelland
parent adea594e28
commit c6347c3ff7

View File

@@ -223,6 +223,7 @@ export class ConfigCursor<T extends ValueType> {
if (max && length > max) {
return spec.subtype === 'enum' ? 'Too many options selected.' : 'List is too long.'
}
if (spec.subtype === 'enum') return null
for (let idx in cfg) {
let cursor = this.seekNext(idx)
if (cursor.checkInvalid()) {