(fix) creating key for a team

This commit is contained in:
Ishaan Jaff 2024-03-28 09:07:10 -07:00
parent 046571ebea
commit 37db367ba6
2 changed files with 8 additions and 4 deletions

View file

@ -18,7 +18,7 @@ const { Option } = Select;
interface CreateKeyProps {
userID: string;
teamID: string | null;
team: any | null;
userRole: string | null;
accessToken: string;
data: any[] | null;
@ -27,7 +27,7 @@ interface CreateKeyProps {
const CreateKey: React.FC<CreateKeyProps> = ({
userID,
teamID,
team,
userRole,
accessToken,
data,
@ -130,7 +130,8 @@ const CreateKey: React.FC<CreateKeyProps> = ({
<Form.Item label="Team ID" name="team_id">
<Input
placeholder="ai_team"
defaultValue={teamID ? teamID : ""}
defaultValue={team && team["team_alias"] ? team["team_alias"] : ""}
disabled={true}
/>
</Form.Item>
<Form.Item label="Models" name="models">