Add user profile to the top menu (#80)
* Add user profile to the top menu * update readme
This commit is contained in:
@@ -52,7 +52,11 @@ const AdminMenu = (props) => {
|
||||
useEffect(() => {
|
||||
const menuConfig = localStorage.getItem('menu');
|
||||
if (menuConfig) {
|
||||
setMenu(JSON.parse(menuConfig));
|
||||
try {
|
||||
setMenu(JSON.parse(menuConfig));
|
||||
} catch (e) {
|
||||
console.error('Error parsing menu configuration', e);
|
||||
}
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user