Added key to mapped components

pull/5370/head
ioedeveloper 3 years ago
parent 68cdd361dc
commit d76f7cc62b
  1. 1
      libs/remix-ui/workspace/src/lib/components/file-explorer.tsx
  2. 1
      libs/remix-ui/workspace/src/lib/components/file-render.tsx

@ -456,6 +456,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
handleClickFile={handleClickFile}
handleClickFolder={handleClickFolder}
handleContextMenu={handleContextMenu}
key={index}
/>)
}
</TreeView>

@ -92,6 +92,7 @@ export const FileRender = (props: RenderFileProps) => {
handleClickFolder={props.handleClickFolder}
handleContextMenu={props.handleContextMenu}
expandPath={props.expandPath}
key={index}
/>)
}
</TreeView> : <TreeView id={`treeView${file.path}`} key={`treeView${file.path}`} {...spreadProps }/>

Loading…
Cancel
Save