Skip to content

Commit

Permalink
Cleanup React Key error on Source and Destination Settings Pages (#23005
Browse files Browse the repository at this point in the history
)

* React was spitting out an error about a lack of keys

* Cleaning react key error on destination settings page

---------

Co-authored-by: Davin Chia <[email protected]>
  • Loading branch information
krishnaglick and davinchia authored Feb 15, 2023
1 parent d351970 commit 420fdf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ const SourceSettings: React.FC<SourceSettingsProps> = ({ currentSource, connecti
<p>
<FormattedMessage id="tables.affectedConnectionsOnDeletion" values={{ count: connectionsWithSource.length }} />
{connectionsWithSource.map((connection) => (
<>
<React.Fragment key={connection.connectionId}>
- <strong>{`${connection.name}\n`}</strong>
</>
</React.Fragment>
))}
</p>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ export const DestinationSettingsPage: React.FC = () => {
values={{ count: connectionsWithDestination.length }}
/>
{connectionsWithDestination.map((connection) => (
<>
<React.Fragment key={connection.connectionId}>
- <strong>{`${connection.name}\n`}</strong>
</>
</React.Fragment>
))}
</p>
);
Expand Down

0 comments on commit 420fdf5

Please sign in to comment.