(ui) show team models on ui

This commit is contained in:
Ishaan Jaff 2024-03-28 20:36:32 -07:00
parent 69ae445e65
commit 9dde7abf4c

View file

@ -148,11 +148,22 @@ const CreateKey: React.FC<CreateKeyProps> = ({
placeholder="Select models" placeholder="Select models"
style={{ width: "100%" }} style={{ width: "100%" }}
> >
{userModels.map((model) => (
<Option key={model} value={model}> {team && team.models ? (
{model} team.models.map((model: string) => (
</Option> <Option key={model} value={model}>
))} {model}
</Option>
))
) : (
userModels.map((model: string) => (
<Option key={model} value={model}>
{model}
</Option>
))
)}
</Select> </Select>
</Form.Item> </Form.Item>
<Form.Item <Form.Item