Add user profile to the top menu (#80)

* Add user profile to the top menu

* update readme
This commit is contained in:
Aine
2024-10-22 12:18:55 +03:00
committed by GitHub
parent ca71038874
commit 4f2cd38344
4 changed files with 49 additions and 6 deletions

View File

@@ -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);
}
}
}, []);