Skip to content

Commit 5baa3ba

Browse files
committed
Add key prop to Chip components in Search and StoreApp
1 parent e2448cf commit 5baa3ba

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

llmstack/client/src/components/store/Search.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ function AppEntry({ app }) {
7878
<Box sx={{ mt: 1, mb: 1 }}>
7979
{app.categories &&
8080
app.categories.map((category) => (
81-
<Chip label={capitalize(category)} size="small" />
81+
<Chip
82+
label={capitalize(category)}
83+
size="small"
84+
key={category}
85+
/>
8286
))}
8387
</Box>
8488
</Box>
@@ -176,6 +180,7 @@ export default function Search({ appSlug }) {
176180
<Box>
177181
{appCategories.map((category) => (
178182
<Chip
183+
key={category}
179184
label={capitalize(category)}
180185
size="small"
181186
variant={

llmstack/client/src/components/store/StoreApp.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function StoreAppHeader({ name, icon, username, description, categories }) {
5252
<Box sx={{ mt: 1, mb: 1 }}>
5353
{categories &&
5454
categories.map((category) => (
55-
<Chip label={category} size="small" />
55+
<Chip label={category} size="small" key={category} />
5656
))}
5757
</Box>
5858
</Box>

0 commit comments

Comments
 (0)