Skip to content

Commit

Permalink
Library sidebar uses unique React keys
Browse files Browse the repository at this point in the history
  • Loading branch information
niamu committed Dec 10, 2023
1 parent 3a5f225 commit 96abab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/Components/Sidebar/Libraries.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function Libraries() {

// FETCH_LIBRARIES_OK
if (fetched && !error && items.length > 0) {
libs = items.map((props, i) => <Library {...props} key={i} />);
libs = items.map((props) => <Library {...props} key={props.id} />);
}

if (libraries.items.length === 0) return null;
Expand Down

0 comments on commit 96abab3

Please sign in to comment.