- Fix issues with labels on sorters

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-02-15 21:03:04 -05:00
parent 767c219af8
commit bcb8de0937

View File

@@ -210,7 +210,7 @@ function RenderFilters({templateId, form}) {
state.sorters
? state.sorters.map((f) => ({
value: f.name,
label: t(f.translation),
label: f?.translation ? (t(f.translation) === f.translation ? f.label : t(f.translation)) : f.label,
}))
: []
}