From 66343ad2a3ea03adde88b401be7659b3740fced3 Mon Sep 17 00:00:00 2001 From: mpetrov Date: Thu, 26 Dec 2024 12:28:31 +0200 Subject: [PATCH] Added double quotes for string --- ui-ngx/src/app/shared/models/js-function.models.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/shared/models/js-function.models.ts b/ui-ngx/src/app/shared/models/js-function.models.ts index c4b38777c2..049d8f4b84 100644 --- a/ui-ngx/src/app/shared/models/js-function.models.ts +++ b/ui-ngx/src/app/shared/models/js-function.models.ts @@ -98,7 +98,7 @@ export const loadModuleMarkdownDescription = (http: HttpClient, translate: Trans } else { propDescription += `

const ${propName}: ${type}`; if (type !== 'object') { - propDescription += ` = ${type === 'string' ? handleHtmlSpecialChars(prop) : prop}`; + propDescription += ' = ' + (type === 'string' ? `"${handleHtmlSpecialChars(prop)}"` : `${prop}`); } propDescription += '

'; }