We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48a4617 commit 82235a2Copy full SHA for 82235a2
frontend/src/components/YearDocumentList.tsx
@@ -1,7 +1,7 @@
1
import axios from "axios"
2
import { useState, useEffect } from "react"
3
import { useParams } from "react-router-dom"
4
-
+import * as Sentry from '@sentry/react'
5
const YearDocumentList = () => {
6
const { year } = useParams<{ year: string }>()
7
@@ -17,7 +17,7 @@ const YearDocumentList = () => {
17
setDocuments(response.data)
18
} catch (error) {
19
console.error('Error fetching documents:', error)
20
- throw error
+ Sentry.captureException(error)
21
}
22
23
0 commit comments