- 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:
Dave Richer
2024-02-14 11:11:44 -05:00
parent 4f76510a96
commit baceb9f5ed
2 changed files with 121 additions and 1 deletions

View File

@@ -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,
}
})
: []