Skip to content

Commit dad704e

Browse files
authored
Merge pull request #10 from cloudhx/chore
Fixed issues found after merging tests into master
2 parents 0a48e84 + f02116b commit dad704e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/issues/IssueList.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ const IssueList = ({ issues, onCloseClick }) => (
2727
</td>
2828
<td>
2929
{issue.labels.map(label => (
30-
<>
31-
<span class="badge badge-primary">{label.name}</span>
30+
<React.Fragment key={label.id}>
31+
<span className="badge badge-primary">{label.name}</span>
3232
<span> </span>
33-
</>
33+
</React.Fragment>
3434
))}
3535
</td>
3636
<td>{issue.assignee.login}</td>

src/components/issues/issueList.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function renderIssueList(args) {
2121

2222
test("lists all issues", () => {
2323
const { getAllByText } = renderIssueList({
24-
issues: issues
24+
issues
2525
});
2626

2727
expect(getAllByText(/close/i)).toHaveLength(issues.length);

0 commit comments

Comments
 (0)