web fixes
This commit is contained in:
@@ -54,6 +54,12 @@ pub(crate) async fn load_page(
|
||||
.column_types,
|
||||
);
|
||||
|
||||
// The panel holds a column to the rules of the table it is being described
|
||||
// for, so it is told what that table is on every render rather than left to
|
||||
// read a copy that a `refresh` could have moved on from.
|
||||
draft.columns.global = draft.global;
|
||||
draft.columns.table_name = draft.table_name.trim().to_ascii_lowercase();
|
||||
|
||||
let tree = definitions
|
||||
.get_profile_tree(
|
||||
authenticated_request(headers, Empty {}).map_err(|_| LoadError::Unauthenticated)?,
|
||||
@@ -88,7 +94,7 @@ pub(crate) async fn load_page(
|
||||
.into_iter()
|
||||
// The profile's ledger accounts are not a link target of their own: an
|
||||
// ACCOUNTING column is how a row is posted to one.
|
||||
.filter(|table| table.name != "accounts")
|
||||
.filter(|table| table.name != crate::schema::ACCOUNTS_TABLE)
|
||||
.map(|table| RelationTableOption {
|
||||
name: table.name,
|
||||
global: table.global,
|
||||
|
||||
Reference in New Issue
Block a user