Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2020-07-15 14:47:33 +02:00
parent c57108fe22
commit ce10f61d63

View File

@ -1,4 +1,6 @@
const generateArrayOfLinks = array => array.map(({ links }) => links).flat();
import { flatten } from 'lodash';
const generateArrayOfLinks = array => flatten(array.map(({ links }) => links));
const findFirstAllowedEndpoint = menuArray => {
const arrayOfLinks = generateArrayOfLinks(menuArray);