diff --git a/src/App.js b/src/App.js index de15bb5..f49eb4a 100644 --- a/src/App.js +++ b/src/App.js @@ -1477,10 +1477,13 @@ function App() { function NavigationTabs({ isAdmin }) { const location = useLocation(); - const tabs = [{ to: '/', label: 'Konfiguration' }]; - if (isAdmin) { - tabs.push({ to: '/admin', label: 'Admin' }); + if (!isAdmin) { + return null; } + const tabs = [ + { to: '/', label: 'Konfiguration' }, + { to: '/admin', label: 'Admin' } + ]; return (