Null check

This commit is contained in:
Alex Tselegidis 2024-01-26 09:59:40 +01:00
parent 5e2d99a6c4
commit b58cbc90d0

View file

@ -860,7 +860,7 @@ App.Pages.Booking = (function () {
// Render the service description // Render the service description
if (service.description.length) { if (service.description?.length) {
const escapedDescription = App.Utils.String.escapeHtml(service.description); const escapedDescription = App.Utils.String.escapeHtml(service.description);
const multiLineDescription = escapedDescription.replaceAll('\n', '<br/>'); const multiLineDescription = escapedDescription.replaceAll('\n', '<br/>');