fixes bug in Relationship field
This commit is contained in:
@@ -50,7 +50,7 @@ class Relationship extends Component {
|
||||
some(relationsToSearch, async (relation, callback) => {
|
||||
const response = await fetch(`${serverURL}${api}/${relation}?limit=${maxResultsPerRequest}&page=${lastLoadedPage}`, {
|
||||
headers: {
|
||||
Authorization: `Bearer ${token}`,
|
||||
Authorization: `JWT ${token}`,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -84,7 +84,8 @@ const DefaultList = (props) => {
|
||||
return (
|
||||
<>
|
||||
<Link to={`${admin}/collections/${collection.slug}/${rowData.id}`}>
|
||||
{cellData}
|
||||
{typeof cellData === 'string' && cellData}
|
||||
{typeof cellData === 'object' && JSON.stringify(cellData)}
|
||||
</Link>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user