mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
Fix PR feedback
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
352417a15b
commit
f46fdf2348
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user