Fix PR feedback

Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2021-06-16 16:07:46 +02:00
parent 352417a15b
commit f46fdf2348

View File

@ -14,10 +14,9 @@ const useMenu = () => {
const generalSectionLinksRef = useRef(state.generalSectionLinks);
const shouldUpdateStrapiRef = useRef(shouldUpdateStrapi);
// Once in the app lifecycle the menu should not be added into any dependencies array
const menuRef = useRef(menu);
const resolvePermissions = async (permissions = allPermissions) => {
const pluginsSectionLinks = menuRef.current;
const pluginsSectionLinks = menu;
const authorizedPluginSectionLinks = await getPluginSectionLinks(
permissions,