Skip to content

Commit

Permalink
[#1770] Fix runtime error on setup team > invite member
Browse files Browse the repository at this point in the history
  • Loading branch information
ifirmawan committed Jan 5, 2024
1 parent 08e2c90 commit 48c8d6b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions frontend/src/modules/workspace/ps/setup-team-form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ const SetupTeamForm = ({ psItem, members, setReload }) => {
}}
>
<Form.Item
label="Email"
label={t`Email`}
name="email"
rules={[
{
Expand Down Expand Up @@ -271,18 +271,22 @@ const SetupTeamForm = ({ psItem, members, setReload }) => {
placement="bottom"
>
<Button type="link" icon={<DropDownIcon />}>
{selectedRole?.label || t`- Please select -`}
{selectedRole ? (
<Trans id={selectedRole.label.id} />
) : (
t`- Please select -`
)}
</Button>
</Dropdown>
<div className="role-description">
<p>{roleDescription}</p>
<Trans id={roleDescription.id} />
</div>
</Form.Item>
<Form.Item label={t`Assign to`} name="teams">
<Checkbox.Group onChange={handleOnCheckedTeams}>
{TEAMS.map((team) => (
<Checkbox key={team.value} value={team.value}>
{team.label}
<Trans id={team.label.id} />
<Tooltip
placement="top"
title={<Trans id={team.description.id} />}
Expand Down

0 comments on commit 48c8d6b

Please sign in to comment.