diff --git a/packages/frontend-core/src/utils/jsonFormatter.ts b/packages/frontend-core/src/utils/jsonFormatter.ts index de17426109..9f9af3a3c0 100644 --- a/packages/frontend-core/src/utils/jsonFormatter.ts +++ b/packages/frontend-core/src/utils/jsonFormatter.ts @@ -30,7 +30,7 @@ const entityMap = { function escapeHtml(html: string) { return String(html).replace(/[&<>"'`=]/g, function (s) { - return entityMap[s] + return entityMap[s as keyof typeof entityMap] }) }