Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
feat: resolved audit log date issue in integration page
=d6a377416d08
diff --git a/frontend/src/pages/organization/AuditLogsPage/components/LogsSection.tsx b/frontend/src/pages/organization/AuditLogsPage/components/LogsSection.tsxindex dcfc6a3f03..e938aed7de 100644--- a/frontend/src/pages/organization/AuditLogsPage/components/LogsSection.tsx+++ b/frontend/src/pages/organization/AuditLogsPage/components/LogsSection.tsx@@ -40,12 +40,20 @@ export const LogsSection = withPermission(});const [timezone, setTimezone] = useState<Timezone>(Timezone.Local);- const [dateFilter, setDateFilter] = useState<TAuditLogDateFilterFormData>({- startDate: new Date(Number(new Date()) - ms("1h")),- endDate: new Date(),- type: AuditLogDateFilterType.Relative,- relativeModeValue: "1h"- });+ const [dateFilter, setDateFilter] = useState<TAuditLogDateFilterFormData>(+ presets?.endDate || presets?.startDate+ ? {+ type: AuditLogDateFilterType.Absolute,+ startDate: presets?.startDate || new Date(Number(new Date()) - ms("1h")),+ endDate: presets?.endDate || new Date()+ }+ : {+ startDate: new Date(Number(new Date()) - ms("1h")),+ endDate: new Date(),+ type: AuditLogDateFilterType.Relative,+ relativeModeValue: "1h"+ }+ );useEffect(() => {if (subscription && !subscription.auditLogs) {