We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f99100 commit 6f0a06bCopy full SHA for 6f0a06b
site/src/pages/AuditPage/AuditPage.tsx
@@ -1,4 +1,5 @@
1
import { paginatedAudits } from "api/queries/audits";
2
+import { ErrorAlert } from "components/Alert/ErrorAlert";
3
import { useFilter } from "components/Filter/Filter";
4
import { useUserFilterMenu } from "components/Filter/UserFilter";
5
import { isNonInitialPage } from "components/PaginationWidget/utils";
@@ -67,6 +68,14 @@ const AuditPage: FC = () => {
67
68
}),
69
});
70
71
+ if (auditsQuery.error) {
72
+ return (
73
+ <div className="p-6">
74
+ <ErrorAlert error={auditsQuery.error} />
75
+ </div>
76
+ );
77
+ }
78
+
79
return (
80
<>
81
<Helmet>
0 commit comments