1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-02-17 20:21:02 +01:00

fix(UI): data type figure twice on type select

This commit is contained in:
Fabio Di Stasio 2021-05-03 22:55:39 +02:00
parent 35ef070725
commit 9dfe7cca22

View File

@ -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);
} }