Skip to content

Commit fbf6af1

Browse files
committed
Fix undefined
1 parent fa24dc3 commit fbf6af1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/browser/src/tracing/browserTracingIntegration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ export function getMetaContent(metaName: string): string | undefined {
782782
/** Returns the description of a server timing entry */
783783
export function getServerTiming(name: string): string | undefined {
784784
const navigation = WINDOW.performance?.getEntriesByType?.('navigation')[0] as PerformanceNavigationTiming | undefined;
785-
const entry = navigation?.serverTiming.find(entry => entry.name === name);
785+
const entry = navigation?.serverTiming?.find(entry => entry.name === name);
786786
return entry?.description;
787787
}
788788

0 commit comments

Comments
 (0)