Simplifying how parts of a charset are checked for uniqueness
This commit is contained in:
parent
99970dd2ab
commit
33bbd11af6
@ -39,11 +39,7 @@ export default {
|
||||
setup() {
|
||||
this.label = (this.properties.invert.textValue === '^') ? 'None of:' : 'One of:';
|
||||
this.elements = _.unique(this.properties.parts.elements, part => {
|
||||
if (part.literal) {
|
||||
return part.literal;
|
||||
} else {
|
||||
return part.textValue;
|
||||
}
|
||||
return [part.type, part.textValue].join(':');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user