Skip to content

Commit fa17240

Browse files
committed
added key to context manager context item to resolve react unique key warning
1 parent 38b904d commit fa17240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/components/ContextAPIManager/CreateTab/components/AddContextForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ const AddContextForm = ({
6666

6767
//creating options for context dropdown
6868
const contexts = allContext.length ? (
69-
allContext.map((context) => {
69+
allContext.map((context, index) => {
7070
return (
71-
<MenuItem style={{ color: '#383838'}} value={context.name}>
71+
<MenuItem style={{ color: '#383838'}} value={context.name} key={index}>
7272
{context.name}
7373
</MenuItem>
7474
);

0 commit comments

Comments
 (0)