fix(frontend): Resolve login redirection and inject JWT token on requests
This commit is contained in:
+2
-1
@@ -170,7 +170,8 @@ const App: React.FC = () => {
|
||||
|
||||
// Keep URL in sync when view changes programmatically via sidebar
|
||||
const handleNavigate = (view: ViewKey) => {
|
||||
if (isViewAllowed(view, currentRole)) {
|
||||
const freshRole = HybridBackend.getCurrentRole();
|
||||
if (isViewAllowed(view, freshRole)) {
|
||||
setCurrentView(view);
|
||||
navigate(view);
|
||||
setSidebarOpen(false); // Close sidebar on mobile after navigation
|
||||
|
||||
Reference in New Issue
Block a user