mirror of https://github.com/Fabio286/antares.git
fix(UI): data type figure twice on type select
This commit is contained in:
parent
35ef070725
commit
9dfe7cca22
|
@ -381,10 +381,12 @@ export default {
|
||||||
isInDataTypes () {
|
isInDataTypes () {
|
||||||
let typeNames = [];
|
let typeNames = [];
|
||||||
for (const group of this.dataTypes) {
|
for (const group of this.dataTypes) {
|
||||||
typeNames = group.types.reduce((acc, curr) => {
|
const groupTypeNames = group.types.reduce((acc, curr) => {
|
||||||
acc.push(curr.name);
|
acc.push(curr.name);
|
||||||
return acc;
|
return acc;
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
typeNames = [...groupTypeNames, ...typeNames];
|
||||||
}
|
}
|
||||||
return typeNames.includes(this.row.type);
|
return typeNames.includes(this.row.type);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue