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