From 571b71f232f090e138006f0220a050af942ea3df Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 22 Feb 2024 01:11:56 +1100 Subject: [PATCH] Retry table name query (#6540) * Retry table name query * Cleanup table names * More cleanup --- src/frontend/src/tables/InvenTreeTable.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/tables/InvenTreeTable.tsx b/src/frontend/src/tables/InvenTreeTable.tsx index 03008a49ea..38988674ca 100644 --- a/src/frontend/src/tables/InvenTreeTable.tsx +++ b/src/frontend/src/tables/InvenTreeTable.tsx @@ -125,7 +125,7 @@ export function InvenTreeTable({ props.tableFilters?.map((filter) => { return { ...filter, - label: filter.label ?? fieldNames[filter.name] ?? `? ${filter.name} ?` + label: filter.label ?? fieldNames[filter.name] ?? `${filter.name}` }; }) ?? [] ); @@ -135,6 +135,7 @@ export function InvenTreeTable({ const tableOptionQuery = useQuery({ enabled: false, queryKey: ['options', url, tableState.tableKey], + retry: 3, queryFn: async () => { return api .options(url, { @@ -212,7 +213,7 @@ export function InvenTreeTable({ return { ...col, hidden: hidden, - title: col.title ?? fieldNames[col.accessor] ?? `? ${col.accessor} ?` + title: col.title ?? fieldNames[col.accessor] ?? `${col.accessor}` }; });