Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie committed Jun 8, 2022
1 parent 001e8c0 commit fe5be22
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ export const DataTablesPane = ({
if (idx > 0) {
return (
<Tabs.TabPane
tab={t('Results %s', idx)}
key={`${ResultTypes.Results} ${idx}`}
tab={t('Results %s', idx + 1)}
key={`${ResultTypes.Results} ${idx + 1}`}
>
{pane}
</Tabs.TabPane>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export const ResultsPaneOnDashboard = ({

return (
<Tabs.TabPane
tab={t('Results %s', idx)}
key={`${ResultTypes.Results} ${idx}`}
tab={t('Results %s', idx + 1)}
key={`${ResultTypes.Results} ${idx + 1}`}
>
{pane}
</Tabs.TabPane>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,6 @@ describe('ResultsPaneOnDashboard', () => {
useRedux: true,
});
expect(await findByText('Results')).toBeVisible();
expect(await findByText('Results 1')).toBeVisible();
expect(await findByText('Results 2')).toBeVisible();
});
});

0 comments on commit fe5be22

Please sign in to comment.