Skip to content

Commit

Permalink
fix: properly escaping app names (#3368)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
gastonfournier committed Mar 22, 2023
1 parent e6c5b22 commit cdff336
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -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
Expand Down

0 comments on commit cdff336

Please sign in to comment.