diff --git a/apps/web/ee/components/apiKeys/ApiKeyListContainer.tsx b/apps/web/ee/components/apiKeys/ApiKeyListContainer.tsx index a496c8d79a..89b1490d38 100644 --- a/apps/web/ee/components/apiKeys/ApiKeyListContainer.tsx +++ b/apps/web/ee/components/apiKeys/ApiKeyListContainer.tsx @@ -18,7 +18,7 @@ export default function ApiKeyListContainer() { const [newApiKeyModal, setNewApiKeyModal] = useState(false); const [editModalOpen, setEditModalOpen] = useState(false); - const [editing, setEditing] = useState(null); + const [apiKeyToEdit, setApiKeyToEdit] = useState(null); return ( { - setEditing(item); + setApiKeyToEdit(item); setEditModalOpen(true); }} /> @@ -60,12 +60,12 @@ export default function ApiKeyListContainer() { {/* Edit api key dialog */} !isOpen && setEditModalOpen(false)}> - {editing && ( + {apiKeyToEdit && ( setEditModalOpen(false)} - defaultValues={editing} + defaultValues={apiKeyToEdit} /> )}