Skip to content

Commit 0aeaa16

Browse files
committed
Use branch name as element key
1 parent cb77764 commit 0aeaa16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/NewBranchDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export class NewBranchDialog extends React.Component<
264264
<ListItem
265265
button
266266
className={classes(listItemClass, isBase ? activeListItemClass : null)}
267-
key={idx}
267+
key={branch.name}
268268
onClick={this._onBranchClickFactory(branch.name)}
269269
>
270270
<span className={classes(listItemIconClass, 'jp-Icon-16')} />

0 commit comments

Comments
 (0)