mirror of
https://github.com/facebook/react.git
synced 2026-02-24 20:53:03 +00:00
[DevTools] Fix display of stack frames with anonymous sources (#34237)
This commit is contained in:
committed by
GitHub
parent
0bc71e67ab
commit
03fda05d2c
@@ -63,13 +63,18 @@ export function CallSiteView({
|
||||
return (
|
||||
<div className={styles.CallSite}>
|
||||
{functionName || virtualFunctionName}
|
||||
{' @ '}
|
||||
<span
|
||||
className={linkIsEnabled ? styles.Link : null}
|
||||
onClick={viewSource}
|
||||
title={url + ':' + line}>
|
||||
{formatLocationForDisplay(url, line, column)}
|
||||
</span>
|
||||
{url !== '' && (
|
||||
<>
|
||||
{' @ '}
|
||||
<span
|
||||
className={linkIsEnabled ? styles.Link : null}
|
||||
onClick={viewSource}
|
||||
title={url + ':' + line}>
|
||||
{formatLocationForDisplay(url, line, column)}
|
||||
</span>
|
||||
</>
|
||||
)}
|
||||
|
||||
<ElementBadges environmentName={environmentName} />
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user