File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export function isStringLoc(loc: UrlValue): loc is string {
9898export function tryGetRemoteLocation (
9999 loc : UrlValue | undefined ,
100100 fileLinkPrefix : string ,
101- sourceLocationPrefix : string ,
101+ sourceLocationPrefix : string | undefined ,
102102) : string | undefined {
103103 const resolvableLocation = tryGetResolvableLocation ( loc ) ;
104104 if ( ! resolvableLocation ) {
Original file line number Diff line number Diff line change @@ -48,10 +48,11 @@ const Cell = ({
4848 return < span > { convertNonPrintableChars ( value . toString ( ) ) } </ span > ;
4949 case 'object' : {
5050 const url = tryGetRemoteLocation ( value . url , fileLinkPrefix , sourceLocationPrefix ) ;
51+ const safeLabel = convertNonPrintableChars ( value . label ) ;
5152 if ( url ) {
52- return < Link href = { url } > { convertNonPrintableChars ( value . label ) } </ Link > ;
53+ return < Link href = { url } > { safeLabel } </ Link > ;
5354 } else {
54- return < span > { convertNonPrintableChars ( value . label ) } </ span > ;
55+ return < span > { safeLabel } </ span > ;
5556 }
5657 }
5758 }
You can’t perform that action at this time.
0 commit comments