FIX: Silly key errors
This commit is contained in:
parent
4179b71f22
commit
24baf27050
@ -11,7 +11,7 @@ import Directory from "./Directory.jsx";
|
||||
export default function DirectoryList({dirs, showHidden, appendPath, toggleSelected}) {
|
||||
return (
|
||||
<>
|
||||
{dirs.map((dir) => <Directory entry={dir} showHidden={showHidden} appendPath={appendPath}
|
||||
{dirs.map((dir, idx) => <Directory key={idx} entry={dir} showHidden={showHidden} appendPath={appendPath}
|
||||
toggleSelected={toggleSelected}/>)}
|
||||
</>
|
||||
)
|
||||
|
||||
@ -62,7 +62,7 @@ export default function PathDisplay({path, updatePath, backHome, backArrow}) {
|
||||
className="w-2/3 mt-8 border-b-1 border-gray-400 bg-white flex items-center truncate">
|
||||
<HomeButton onClick={backHome}/>
|
||||
<BackButton onClick={backArrow}/>
|
||||
{path.map((seg, idx) => <PathElement name={seg} index={idx} onClick={updatePath}/>)}
|
||||
{path.map((seg, idx) => <PathElement name={seg} key={idx} index={idx} onClick={updatePath}/>)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user