mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-13 04:05:04 +03:00
Add key prop inside map (#867)
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
* fix: add unique key to list items in TestingVersionList component * fix: add unique key to PluginCard components in BrowseTab
This commit is contained in:
@@ -80,7 +80,7 @@ export default function TestingVersionList() {
|
|||||||
<ul style={{ listStyleType: 'none', padding: '0' }}>
|
<ul style={{ listStyleType: 'none', padding: '0' }}>
|
||||||
{testingVersions.map((version) => {
|
{testingVersions.map((version) => {
|
||||||
return (
|
return (
|
||||||
<li>
|
<li key={`${version.id}_${version.name}`}>
|
||||||
<Field
|
<Field
|
||||||
label={
|
label={
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -240,6 +240,7 @@ const BrowseTab: FC<{ setPluginCount: Dispatch<SetStateAction<number | null>> }>
|
|||||||
})
|
})
|
||||||
.map((plugin: StorePlugin) => (
|
.map((plugin: StorePlugin) => (
|
||||||
<PluginCard
|
<PluginCard
|
||||||
|
key={`${plugin.id}_${plugin.name}`}
|
||||||
storePlugin={plugin}
|
storePlugin={plugin}
|
||||||
installedPlugin={installedPlugins.find((installedPlugin) => installedPlugin.name === plugin.name)}
|
installedPlugin={installedPlugins.find((installedPlugin) => installedPlugin.name === plugin.name)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user