Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
fix: path
Browse files Browse the repository at this point in the history
  • Loading branch information
sircharlo committed Jun 23, 2024
1 parent 960051f commit f09d4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/boot/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default boot(({ app }) => {
Sentry.rewriteFramesIntegration({
// @ts-expect-error Frame typing
iteratee: (frame) => {
frame.filename = path.basename(frame.filename);
frame.filename = path.basename(frame.filename) ?? frame.filename;

Check failure on line 15 in src/boot/sentry.ts

View workflow job for this annotation

GitHub Actions / release (ubuntu-latest)

Argument of type 'string | undefined' is not assignable to parameter of type 'string'.

Check failure on line 15 in src/boot/sentry.ts

View workflow job for this annotation

GitHub Actions / release (macos-latest)

Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
},
prefix: '~/',
}),
Expand Down

0 comments on commit f09d4b9

Please sign in to comment.