greptile review fixes

This commit is contained in:
x032205
2025-09-05 00:16:36 -04:00
parent 0c9ade33dd
commit ab2146367c
8 changed files with 25 additions and 11 deletions
+1
View File
@@ -13,6 +13,7 @@ export const AUDIT_LOG_STREAM_PROVIDER_MAP: Record<
[LogProvider.Splunk]: { name: "Splunk", image: "Splunk.png", size: 65 }
};
// Strictly for showing to the client in the front-end
export function getProviderUrl(
logStream: DiscriminativePick<TAuditLogStream, "provider" | "credentials">
) {
@@ -16,7 +16,7 @@ export const useCreateAuditLogStream = () => {
mutationFn: async ({ provider, ...params }: TCreateAuditLogStreamDTO) => {
const { data } = await apiRequest.post<{ auditLogStream: TAuditLogStream }>(
`/api/v1/audit-log-streams/${provider}`,
{ ...params, provider }
params
);
return data.auditLogStream;
@@ -255,7 +255,7 @@ export const AuditLogStreamTable = () => {
{isPending && (
<TableSkeleton
innerKey="audit-log-streams-table"
columns={4}
columns={3}
key="audit-log-streams"
/>
)}
@@ -92,7 +92,7 @@ export const LogStreamProviderSelect = ({ onSelect }: Props) => {
</button>
);
})}
{!filteredOptions?.length && (
{!filteredOptions.length && (
<EmptyState
className="col-span-full mt-40"
title="No providers match search"