From 69dd0f2ecc730e1b6754158bdf50f82692e5fce0 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 22 Jan 2020 21:51:31 -0500 Subject: [PATCH] adds todo comments for revising incoming defaultValues --- src/client/components/forms/field-types/Relationship/index.js | 3 +++ src/client/components/forms/field-types/Select/index.js | 3 +++ src/client/components/views/collections/Edit/index.js | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) 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' } } );