Skip to content

Commit b14b714

Browse files
authored
fix: missing react key on settings menu fragment (#1757)
1 parent 8cb0a10 commit b14b714

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/code-studio/src/settings/SettingsMenu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Component, ReactElement, RefObject } from 'react';
1+
import React, { Component, Fragment, ReactElement, RefObject } from 'react';
22
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
33
import {
44
vsClose,
@@ -139,10 +139,10 @@ export class SettingsMenu extends Component<
139139
const copyShortcut = GLOBAL_SHORTCUTS.COPY_VERSION_INFO.getDisplayText();
140140

141141
const getRow = (text: string, ver?: string): JSX.Element => (
142-
<>
142+
<Fragment key={text}>
143143
<div>{text}</div>
144144
<div>{ver}</div>
145-
</>
145+
</Fragment>
146146
);
147147

148148
const userDisplayName = user.displayName ?? user.name;

0 commit comments

Comments
 (0)