- Fix issues with labels on sorters
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -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,
|
||||
}))
|
||||
: []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user