Skip to content

Commit

Permalink
Merge pull request #813 from Arnei/fix-unique-key
Browse files Browse the repository at this point in the history
Fix unique key prop
  • Loading branch information
lkiesow authored Jul 9, 2024
2 parents 0b07927 + cf2773f commit 0ec2c16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ const EventDetailsAssetMediaDetails = ({
<tbody>
{!!media.streams.audio &&
media.streams.audio.map((audioStream, key) => (
<tr>
<tr key={key}>
<td>{key}</td>
<td>{audioStream.type}</td>
<td>{audioStream.channels}</td>
Expand Down Expand Up @@ -317,7 +317,7 @@ const EventDetailsAssetMediaDetails = ({
<tbody>
{!!media.streams.video &&
media.streams.video.map((videoStream, key) => (
<tr>
<tr key={key}>
<td>{key}</td>
<td>
{videoStream.type}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ const EventDetailsAssetsTab = ({
<>
{/* Assets tabs */}
<nav style={assetsNavStyle}>
{assetsTabs.map((tab) => (
{assetsTabs.map((tab, key) => (
<button
key={key}
className={"button-like-anchor"}
style={tab.tabHierarchies.includes(assetsTabHierarchy) ? assetsTabActive: assetsTabInactive}
onClick={tab.open}
Expand Down

0 comments on commit 0ec2c16

Please sign in to comment.