mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +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:
		
							parent
							
								
									e6c5b22d4b
								
							
						
					
					
						commit
						cdff336157
					
				@ -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(
 | 
			
		||||
                            '"',
 | 
			
		||||
                            '"'
 | 
			
		||||
                        )}") -- ${reqs} req/s<br>${type} --> Unleash`
 | 
			
		||||
                )
 | 
			
		||||
                .join('\n')}
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user