fix e2eui

This commit is contained in:
Ishaan Jaffer 2025-10-16 17:48:27 -07:00
parent bf20ecab80
commit 1c53a686d5
2 changed files with 7 additions and 4 deletions

View file

@ -102,11 +102,11 @@ const CreateTeamModal = ({
console.log(`models: ${models}`);
setModelsToPick(models);
form.setFieldValue("models", []);
}, [currentOrgForCreateTeam, userModels]);
}, [currentOrgForCreateTeam, userModels, form]);
useEffect(() => {
fetchMcpAccessGroups();
}, [accessToken]);
}, [accessToken, fetchMcpAccessGroups]);
useEffect(() => {
const fetchGuardrails = async () => {

View file

@ -1,7 +1,8 @@
import React from "react";
import { Text, TextInput, Button } from "@tremor/react";
import { TextInput, Button } from "@tremor/react";
import { Select as AntdSelect, Form, Tooltip } from "antd";
import { InfoCircleOutlined } from "@ant-design/icons";
import Image from "next/image";
import { Providers, provider_map, providerLogoMap } from "../provider_info_helpers";
import { DiscountConfig } from "./types";
import { handleImageError } from "./provider_display_helpers";
@ -57,9 +58,11 @@ const AddProviderForm: React.FC<AddProviderFormProps> = ({
return (
<AntdSelect.Option key={providerEnum} value={providerEnum} label={providerDisplayName}>
<div className="flex items-center space-x-2">
<img
<Image
src={providerLogoMap[providerDisplayName]}
alt={`${providerEnum} logo`}
width={20}
height={20}
className="w-5 h-5"
onError={(e) => handleImageError(e, providerDisplayName)}
/>