Fix `TypeError: Cannot read property 'id' of undefined`

This commit is contained in:
Deluan 2021-12-03 17:15:39 -05:00
parent 69615f1aa1
commit bde9d5f954
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ const AlbumDatagridRow = (props) => {
const [, dragAlbumRef] = useDrag(
() => ({
type: DraggableTypes.ALBUM,
item: { albumIds: [record.id] },
item: { albumIds: [record?.id] },
options: { dropEffect: 'copy' },
}),
[record]