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
1 changed files with 3 additions and 1 deletions

View File

@ -381,10 +381,12 @@ export default {
isInDataTypes () {
let typeNames = [];
for (const group of this.dataTypes) {
typeNames = group.types.reduce((acc, curr) => {
const groupTypeNames = group.types.reduce((acc, curr) => {
acc.push(curr.name);
return acc;
}, []);
typeNames = [...groupTypeNames, ...typeNames];
}
return typeNames.includes(this.row.type);
}