Skip to content

Commit

Permalink
fix: list drawer relationship not displaying (#9011)
Browse files Browse the repository at this point in the history
List drawer relationships are not showing when selecting an existing
upload.

Before:

![image](https://github.com/user-attachments/assets/77c68572-31d2-47f9-b754-82808cf3f01c)

After:
![Screenshot 2024-11-04
093830](https://github.com/user-attachments/assets/59f41ee0-f3de-431d-b432-e6181b5736a8)
  • Loading branch information
DanRibbens authored Nov 4, 2024
1 parent 25932c0 commit 169da5c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ const RelationshipCell: React.FC<CellComponentProps<RelationshipField | UploadFi
relationTo: field.relationTo,
value: cell,
})
} else if (typeof cell.id !== 'undefined' && typeof field.relationTo === 'string') {
formattedValues.push({
relationTo: field.relationTo,
value: cell.id,
})
}
})
getRelationships(formattedValues)
Expand Down

0 comments on commit 169da5c

Please sign in to comment.