Hi A,
Thanks
for reaching out to us.
When
the subject field is not set for a blocked period, the UI may display
"undefined" by default. This is the expected behavior when the value
is an empty string. However, there are two ways to handle this and avoid
showing "undefined" in the interface:
- Set a space (" ") instead of an empty string
for the subject field. This will ensure the field appears visually blank
without displaying "undefined".
- Manually handle the rendering using the eventRendered
event, which is especially helpful if you're working with multiple block
events. You can use the following approach:
Index.js
|
eventRendered: (args) => {
if (args.type === 'blockEvent') {
if (args.data &&
args.data.TravelSummary && args.data.TravelSummary.trim() ===
"") {
args.element.querySelector('.e-subject').textContent = " ";
}
}
};
|
Regards,
Saritha S.