- add basic documentation
- fix bug with label not being used if translation does not exist Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -65,7 +65,7 @@ function RenderFilters({templateId, form}) {
|
||||
? state.filters.map((f) => {
|
||||
return {
|
||||
value: f.name,
|
||||
label: f?.translation ? t(f.translation) : f.label,
|
||||
label: f?.translation ? (t(f.translation) === f.translation ? f.label : t(f.translation)) : f.label,
|
||||
}
|
||||
})
|
||||
: []
|
||||
|
||||
Reference in New Issue
Block a user