FIX: Silly key errors

This commit is contained in:
Hayden Hargreaves 2025-03-04 21:27:36 -07:00
parent 4179b71f22
commit 24baf27050
2 changed files with 3 additions and 3 deletions

View File

@ -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}/>)}
</>
)

View File

@ -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>
)
}