From 54fe0f7421c869cb8356859612578fbb46150dd5 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Sun, 7 Dec 2025 16:16:13 +0100 Subject: [PATCH] Fix eslint issues --- .../src/components/apikeys/CreateApiKeyDialog.tsx | 2 +- webui/src/components/settings/ApiKeysSection.tsx | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/webui/src/components/apikeys/CreateApiKeyDialog.tsx b/webui/src/components/apikeys/CreateApiKeyDialog.tsx index 06e2d78..ed5c463 100644 --- a/webui/src/components/apikeys/CreateApiKeyDialog.tsx +++ b/webui/src/components/apikeys/CreateApiKeyDialog.tsx @@ -116,7 +116,7 @@ function CreateApiKeyDialog({ open, onOpenChange, onKeyCreated }: CreateApiKeyDi Create API Key -
+ void handleSubmit(e)} className="space-y-4"> {error && ( {error} diff --git a/webui/src/components/settings/ApiKeysSection.tsx b/webui/src/components/settings/ApiKeysSection.tsx index b70683a..2ca9633 100644 --- a/webui/src/components/settings/ApiKeysSection.tsx +++ b/webui/src/components/settings/ApiKeysSection.tsx @@ -4,7 +4,7 @@ import { Badge } from "@/components/ui/badge"; import { Alert, AlertDescription } from "@/components/ui/alert"; import { Trash2, Copy, Check, X, ChevronDown, ChevronRight } from "lucide-react"; import { apiKeysApi } from "@/lib/api"; -import { ApiKey, KeyPermissionResponse, PermissionMode } from "@/types/apiKey"; +import { type ApiKey, type KeyPermissionResponse, PermissionMode } from "@/types/apiKey"; import CreateApiKeyDialog from "@/components/apikeys/CreateApiKeyDialog"; import { format, formatDistanceToNow } from "date-fns"; @@ -20,7 +20,7 @@ function ApiKeysSection() { const [loadingPermissions, setLoadingPermissions] = useState>({}); useEffect(() => { - fetchKeys(); + void fetchKeys(); }, []); const fetchKeys = async () => { @@ -52,7 +52,7 @@ function ApiKeysSection() { const handleKeyCreated = (plainTextKey: string) => { setNewKeyPlainText(plainTextKey); - fetchKeys(); + void fetchKeys(); setCreateDialogOpen(false); }; @@ -75,7 +75,7 @@ function ApiKeysSection() { try { await apiKeysApi.delete(id); - fetchKeys(); + void fetchKeys(); } catch (err) { alert(err instanceof Error ? err.message : "Failed to delete API key"); } @@ -87,7 +87,7 @@ function ApiKeysSection() { } else { setExpandedRowId(key.id); if (key.permission_mode === PermissionMode.PerInstance) { - fetchPermissions(key.id); + void fetchPermissions(key.id); } } }; @@ -136,7 +136,7 @@ function ApiKeysSection() { {newKeyPlainText} - @@ -216,7 +216,7 @@ function ApiKeysSection() { size="icon" onClick={(e) => { e.stopPropagation(); - handleDeleteKey(key.id, key.name); + void handleDeleteKey(key.id, key.name); }} title="Delete key" >