We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentc5a265f commita2cc1b8Copy full SHA for a2cc1b8
site/src/pages/AuditPage/AuditPage.tsx
@@ -16,6 +16,12 @@ import { AuditPageView } from "./AuditPageView";
16
17
constAuditPage:FC=()=>{
18
constfeats=useFeatureVisibility();
19
+// The "else false" is required if audit_log is undefined.
20
+// It may happen if owner removes the license.
21
+//
22
+// see: https://github.com/coder/coder/issues/14798
23
+constisAuditLogVisible=feats.audit_log||false;
24
+
25
const{ showOrganizations}=useDashboard();
26
27
/**
@@ -85,7 +91,7 @@ const AuditPage: FC = () => {
85
91
<AuditPageView
86
92
auditLogs={auditsQuery.data?.audit_logs}
87
93
isNonInitialPage={isNonInitialPage(searchParams)}
88
-isAuditLogVisible={feats.audit_log}
94
+isAuditLogVisible={isAuditLogVisible}
89
95
auditsQuery={auditsQuery}
90
96
error={auditsQuery.error}
97
showOrgDetails={showOrganizations}