ClaimList: fix "missing key in list" error
Each list item must have a unique key, and I didn't realize it needs to happen at the `<React.Suspence>` level too.
This commit is contained in:
parent
b56dc66f23
commit
d4f26c4272
1 changed files with 2 additions and 2 deletions
|
@ -251,8 +251,8 @@ export default function ClaimList(props: Props) {
|
||||||
|
|
||||||
{sortedUris.map((uri, index) =>
|
{sortedUris.map((uri, index) =>
|
||||||
droppableProvided ? (
|
droppableProvided ? (
|
||||||
<React.Suspense fallback={null}>
|
<React.Suspense fallback={null} key={uri}>
|
||||||
<Draggable key={uri} draggableId={uri} index={index}>
|
<Draggable draggableId={uri} index={index}>
|
||||||
{(draggableProvided, draggableSnapshot) => {
|
{(draggableProvided, draggableSnapshot) => {
|
||||||
// Restrict dragging to vertical axis
|
// Restrict dragging to vertical axis
|
||||||
// https://github.com/atlassian/react-beautiful-dnd/issues/958#issuecomment-980548919
|
// https://github.com/atlassian/react-beautiful-dnd/issues/958#issuecomment-980548919
|
||||||
|
|
Loading…
Reference in a new issue