duplicate key fix

episode and index are both numbers so they get summed before concatonated with the id.
This commit is contained in:
mikecraig
2025-02-13 17:28:57 -06:00
parent 2cabd2bcd3
commit 522484e206

View File

@@ -66,7 +66,7 @@ function LastPlayed(props) {
</h1>
<div className="last-played-container">
{data.map((item, index) => (
<ErrorBoundary key={item.Id + item.EpisodeNumber + index}>
<ErrorBoundary key={`${item.Id}${item.EpisodeNumber}${index}`}>
<LastWatchedCard data={item} base_url={config.settings?.EXTERNAL_URL ?? config.hostUrl} />
</ErrorBoundary>
))}