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() {
|
setup() {
|
||||||
this.label = (this.properties.invert.textValue === '^') ? 'None of:' : 'One of:';
|
this.label = (this.properties.invert.textValue === '^') ? 'None of:' : 'One of:';
|
||||||
this.elements = _.unique(this.properties.parts.elements, part => {
|
this.elements = _.unique(this.properties.parts.elements, part => {
|
||||||
if (part.literal) {
|
return [part.type, part.textValue].join(':');
|
||||||
return part.literal;
|
|
||||||
} else {
|
|
||||||
return part.textValue;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user