From b58cbc90d0c422ba4d45c83a6e5b3669ca18d691 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Fri, 26 Jan 2024 09:59:40 +0100 Subject: [PATCH] Null check --- assets/js/pages/booking.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/pages/booking.js b/assets/js/pages/booking.js index 2f68fcbf..05a3b188 100644 --- a/assets/js/pages/booking.js +++ b/assets/js/pages/booking.js @@ -860,7 +860,7 @@ App.Pages.Booking = (function () { // Render the service description - if (service.description.length) { + if (service.description?.length) { const escapedDescription = App.Utils.String.escapeHtml(service.description); const multiLineDescription = escapedDescription.replaceAll('\n', '
');