1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

fix: launch from shortcut of procedures or functions with parameters without name dont works

This commit is contained in:
2021-04-19 15:40:25 +02:00
parent 6eb2977568
commit f82dbd24dc
3 changed files with 5 additions and 15 deletions

View File

@ -185,15 +185,10 @@ export default {
isInDataTypes () {
let typeNames = [];
for (const group of this.workspace.dataTypes) {
const groupTypeNames = group.types.reduce((acc, curr) => {
typeNames = group.types.reduce((acc, curr) => {
acc.push(curr.name);
return acc;
}, []);
typeNames = [
...groupTypeNames,
...typeNames
];
}
return typeNames.includes(this.localOptions.returns);
}