diff --git a/packages/trace-viewer/src/ui/sourceTab.tsx b/packages/trace-viewer/src/ui/sourceTab.tsx
index 27d64146ec..4e2c0528fe 100644
--- a/packages/trace-viewer/src/ui/sourceTab.tsx
+++ b/packages/trace-viewer/src/ui/sourceTab.tsx
@@ -100,7 +100,7 @@ export const SourceTab: React.FunctionComponent<{
{ fileName &&
{fileName}
-
+
{location && }
}
@@ -121,10 +121,9 @@ export async function calculateSha1(text: string): Promise {
return hexCodes.join('');
}
-function getFileName(fullPath?: string, lineNum?: number): string {
+function getFileName(fullPath?: string): string {
if (!fullPath)
return '';
const pathSep = fullPath?.includes('/') ? '/' : '\\';
- const fileName = fullPath?.split(pathSep).pop() ?? '';
- return lineNum ? `${fileName}:${lineNum}` : fileName;
+ return fullPath?.split(pathSep).pop() ?? '';
}