diff --git a/client/src/ui/handlers/render.rs b/client/src/ui/handlers/render.rs index 07c1f09..60f5107 100644 --- a/client/src/ui/handlers/render.rs +++ b/client/src/ui/handlers/render.rs @@ -27,7 +27,7 @@ pub fn render_ui( command_message: &str, app_state: &AppState, intro_state: &intro::IntroState, - admin_panel_state: &AdminPanelState, + admin_panel_state: &mut AdminPanelState, ) { render_background(f, f.area(), theme); diff --git a/client/src/ui/handlers/ui.rs b/client/src/ui/handlers/ui.rs index b4094ec..0a01f34 100644 --- a/client/src/ui/handlers/ui.rs +++ b/client/src/ui/handlers/ui.rs @@ -32,7 +32,7 @@ pub async fn run_ui() -> Result<(), Box> { .iter() .map(|p| p.name.clone()) .collect(); - let admin_panel_state = AdminPanelState::new(profiles); + let mut admin_panel_state = AdminPanelState::new(profiles); // Fetch table structure at startup (one-time) let table_structure = grpc_client.get_table_structure().await?; @@ -75,7 +75,7 @@ pub async fn run_ui() -> Result<(), Box> { &event_handler.command_message, &app_state, &intro_state, - &admin_panel_state, + &mut admin_panel_state, ); })?;