Skip to content

Commit 7caabaa

Browse files
committed
Fix missing key for React.Fragment in Array map listing
1 parent dab8079 commit 7caabaa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/components/workbench/EditorPanel.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { isMobile } from '~/utils/mobile';
2323
import { FileBreadcrumb } from './FileBreadcrumb';
2424
import { FileTree } from './FileTree';
2525
import { Terminal, type TerminalRef } from './terminal/Terminal';
26+
import React from 'react';
2627

2728
interface EditorPanelProps {
2829
files?: FileMap;
@@ -203,7 +204,7 @@ export const EditorPanel = memo(
203204
const isActive = activeTerminal === index;
204205

205206
return (
206-
<>
207+
<React.Fragment key={index}>
207208
{index == 0 ? (
208209
<button
209210
key={index}
@@ -222,7 +223,7 @@ export const EditorPanel = memo(
222223
Bolt Terminal
223224
</button>
224225
) : (
225-
<>
226+
<React.Fragment>
226227
<button
227228
key={index}
228229
className={classNames(
@@ -238,9 +239,9 @@ export const EditorPanel = memo(
238239
<div className="i-ph:terminal-window-duotone text-lg" />
239240
Terminal {terminalCount > 1 && index}
240241
</button>
241-
</>
242+
</React.Fragment>
242243
)}
243-
</>
244+
</React.Fragment>
244245
);
245246
})}
246247
{terminalCount < MAX_TERMINALS && <IconButton icon="i-ph:plus" size="md" onClick={addTerminal} />}

0 commit comments

Comments
 (0)