mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 19:03:21 +03:00
Null check
This commit is contained in:
parent
5e2d99a6c4
commit
b58cbc90d0
1 changed files with 1 additions and 1 deletions
|
@ -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/>');
|
||||||
|
|
Loading…
Reference in a new issue