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
fix: correctly parse audit log error message
Scott Wilsonfd89b3c702ec
diff --git a/frontend/src/hooks/api/auditLogs/queries.tsx b/frontend/src/hooks/api/auditLogs/queries.tsxindex b254b46d30..8cb438c92d 100644--- a/frontend/src/hooks/api/auditLogs/queries.tsx+++ b/frontend/src/hooks/api/auditLogs/queries.tsx@@ -1,8 +1,7 @@import { useInfiniteQuery, useQuery } from "@tanstack/react-query";-import { AxiosError } from "axios";-import { createNotification } from "@app/components/notifications";import { apiRequest } from "@app/config/request";+import { onRequestError } from "@app/hooks/api/reactQuery";import { TReactQueryOptions } from "@app/types/reactQuery";import { Actor, AuditLog, TGetAuditLogsFilter } from "./types";@@ -46,12 +45,7 @@ export const useGetAuditLogs = ();return data.auditLogs;} catch (error) {- if (error instanceof AxiosError) {- createNotification({- type: "error",- text: error.response?.data.message- });- }+ onRequestError(error);return [];}},