Fix TypeError: Cannot read property 'id' of undefined
This commit is contained in:
@@ -54,7 +54,7 @@ const AlbumDatagridRow = (props) => {
|
|||||||
const [, dragAlbumRef] = useDrag(
|
const [, dragAlbumRef] = useDrag(
|
||||||
() => ({
|
() => ({
|
||||||
type: DraggableTypes.ALBUM,
|
type: DraggableTypes.ALBUM,
|
||||||
item: { albumIds: [record.id] },
|
item: { albumIds: [record?.id] },
|
||||||
options: { dropEffect: 'copy' },
|
options: { dropEffect: 'copy' },
|
||||||
}),
|
}),
|
||||||
[record]
|
[record]
|
||||||
|
|||||||
Reference in New Issue
Block a user