Browse Source

Added double quotes for string

pull/12332/head
mpetrov 2 years ago
parent
commit
66343ad2a3
  1. 2
      ui-ngx/src/app/shared/models/js-function.models.ts

2
ui-ngx/src/app/shared/models/js-function.models.ts

@ -98,7 +98,7 @@ export const loadModuleMarkdownDescription = (http: HttpClient, translate: Trans
} else {
propDescription += `<p class="!pl-4 !pr-4"><em>const</em> <strong>${propName}</strong>: <code>${type}</code>`;
if (type !== 'object') {
propDescription += ` = ${type === 'string' ? handleHtmlSpecialChars(prop) : prop}`;
propDescription += ' = ' + (type === 'string' ? `"${handleHtmlSpecialChars(prop)}"` : `${prop}`);
}
propDescription += '</p>';
}

Loading…
Cancel
Save