Fix TypeError: Cannot read property 'id' of undefined

This commit is contained in:
Deluan 2021-12-03 17:15:39 -05:00 committed by Joe Stump
parent 971aed45a5
commit 302272a34a
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

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]