Replace flat with reduce-concat
This commit is contained in:
parent
ccc6a31dde
commit
803e6ea7af
1 changed files with 2 additions and 1 deletions
|
@ -112,7 +112,8 @@ const getSetCompletions = (command, keywords) => {
|
|||
url: 'Set ' + properties.docs[key],
|
||||
}
|
||||
];
|
||||
}).flat();
|
||||
});
|
||||
items = items.reduce((acc, val) => acc.concat(val), []);
|
||||
if (items.length === 0) {
|
||||
return Promise.resolve([]);
|
||||
}
|
||||
|
|
Reference in a new issue