Refactor getFieldTitle function in utils.ts
This commit is contained in:
parent
c917eeec4a
commit
4e63f2a6ca
1 changed files with 1 additions and 3 deletions
|
|
@ -640,7 +640,5 @@ export function getFieldTitle(
|
||||||
): string {
|
): string {
|
||||||
return template[templateField].display_name
|
return template[templateField].display_name
|
||||||
? template[templateField].display_name!
|
? template[templateField].display_name!
|
||||||
: template[templateField].name
|
: template[templateField].name ?? templateField;
|
||||||
? toTitleCase(template[templateField].name!, true)
|
|
||||||
: toTitleCase(templateField, true);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue