Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: missing react key on settings menu fragment #1757

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/code-studio/src/settings/SettingsMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, ReactElement, RefObject } from 'react';
import React, { Component, Fragment, ReactElement, RefObject } from 'react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import {
vsClose,
Expand Down Expand Up @@ -139,10 +139,10 @@ export class SettingsMenu extends Component<
const copyShortcut = GLOBAL_SHORTCUTS.COPY_VERSION_INFO.getDisplayText();

const getRow = (text: string, ver?: string): JSX.Element => (
<>
<Fragment key={text}>
<div>{text}</div>
<div>{ver}</div>
</>
</Fragment>
);

const userDisplayName = user.displayName ?? user.name;
Expand Down
Loading