1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-27 13:49:10 +02:00

fix: properly escaping app names (#3368)

## About the changes
Network overview was not escaping square brackets from app names and
that caused mermaid graph to break. We've also identified problems with
quotes and some characters not showing properly when using utf-8 (but
still no solution for this). We're going to be testing the utf-8 issue
in our sandbox instances.
This commit is contained in:
Gastón Fournier 2023-03-22 10:40:22 +01:00
parent e6c5b22d4b
commit cdff336157
No known key found for this signature in database
GPG Key ID: AF45428626E17A8E

View File

@ -94,7 +94,10 @@ export const NetworkOverview = () => {
${apps
.map(
({ label, reqs, type }, i) =>
`app-${i}(${label}) -- ${reqs} req/s<br>${type} --> Unleash`
`app-${i}("${label.replaceAll(
'"',
'&quot;'
)}") -- ${reqs} req/s<br>${type} --> Unleash`
)
.join('\n')}
end