Skip to content

Commit 82235a2

Browse files
capture
1 parent 48a4617 commit 82235a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/YearDocumentList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import axios from "axios"
22
import { useState, useEffect } from "react"
33
import { useParams } from "react-router-dom"
4-
4+
import * as Sentry from '@sentry/react'
55
const YearDocumentList = () => {
66
const { year } = useParams<{ year: string }>()
77

@@ -17,7 +17,7 @@ const YearDocumentList = () => {
1717
setDocuments(response.data)
1818
} catch (error) {
1919
console.error('Error fetching documents:', error)
20-
throw error
20+
Sentry.captureException(error)
2121
}
2222
}
2323

0 commit comments

Comments
 (0)