This commit is contained in:
Louis Lam
2023-03-31 21:34:05 +08:00
parent a6acd065bb
commit 524cf7c607
3 changed files with 16 additions and 18 deletions

View File

@@ -923,7 +923,11 @@ export default {
* @returns {string} Sanitized HTML
*/
maintenanceHTML(description) {
return DOMPurify.sanitize(marked(description));
if (description) {
return DOMPurify.sanitize(marked(description));
} else {
return "";
}
},
}