Skip to content

Commit

Permalink
fix(ajsf/core): layout functions: buildTitleMap: use empty string to …
Browse files Browse the repository at this point in the history
…conform HTML behaviour

use empty string instead of null for non required empty values to conform HTML behaviour
Fixes hamzahamidi#333
  • Loading branch information
E-Fir committed Nov 8, 2022
1 parent 587dbed commit bb2acac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ajsf-core/src/lib/shared/layout.functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ export function buildTitleMap(
}
}
if (!fieldRequired && !hasEmptyValue) {
newTitleMap.unshift({ name: '<em>None</em>', value: null });
newTitleMap.unshift({ name: '<em>None</em>', value: '' });
}
return newTitleMap;
}

0 comments on commit bb2acac

Please sign in to comment.