1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01: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 committed by GitHub
parent 96da121863
commit 64c41b8c6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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