diff --git a/src/client/components/forms/field-types/Relationship/index.js b/src/client/components/forms/field-types/Relationship/index.js index e4ae808574..10429a979e 100644 --- a/src/client/components/forms/field-types/Relationship/index.js +++ b/src/client/components/forms/field-types/Relationship/index.js @@ -134,6 +134,9 @@ class Relationship extends Component { // eslint-disable-next-line prefer-template const fieldWidth = width ? width + '%' : null; + // Todo: revise defaultValue. + // Use this category: http://localhost:3000/admin/collections/categories/5e2904bfc47ddb0aae200ad0 + return (
{ const fieldWidth = width ? `${width}%` : undefined; + // Todo: revise defaultValue. + // Use this category: http://localhost:3000/admin/collections/categories/5e2904bfc47ddb0aae200ad0 + return (
{ const { params: { id } = {} } = useRouteMatch(); const [{ data }] = usePayloadAPI( - (isEditing ? `${serverURL}/${collection.slug}` : null), + (isEditing ? `${serverURL}/${collection.slug}/${id}` : null), { initialParams: { 'fallback-locale': 'null' } } );