neccessary hardcode changes to fix the last changes introducing bug. general solution soon

This commit is contained in:
filipriec
2025-05-25 19:16:42 +02:00
parent 685361a11a
commit 5afb427bb4
2 changed files with 25 additions and 7 deletions

View File

@@ -17,8 +17,15 @@ impl UiService {
let profile_tree = grpc_client.get_profile_tree().await.context("Failed to get profile tree")?;
app_state.profile_tree = profile_tree;
// Fetch table structure
let table_structure = grpc_client.get_table_structure().await?;
// TODO for general tables and not hardcoded
let default_profile_name = "default".to_string();
let default_table_name = "2025_customer".to_string();
// Fetch table structure for the default table
let table_structure = grpc_client
.get_table_structure(default_profile_name, default_table_name)
.await
.context("Failed to get initial table structure")?;
// Extract the column names from the response
let column_names: Vec<String> = table_structure