adds todo comments for revising incoming defaultValues

This commit is contained in:
James
2020-01-22 21:51:31 -05:00
parent cba0a83985
commit 69dd0f2ecc
3 changed files with 7 additions and 1 deletions

View File

@@ -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 (
<div
className={classes}

View File

@@ -46,6 +46,9 @@ const Select = (props) => {
const fieldWidth = width ? `${width}%` : undefined;
// Todo: revise defaultValue.
// Use this category: http://localhost:3000/admin/collections/categories/5e2904bfc47ddb0aae200ad0
return (
<div
className={classes}

View File

@@ -25,7 +25,7 @@ const EditView = (props) => {
const { params: { id } = {} } = useRouteMatch();
const [{ data }] = usePayloadAPI(
(isEditing ? `${serverURL}/${collection.slug}` : null),
(isEditing ? `${serverURL}/${collection.slug}/${id}` : null),
{ initialParams: { 'fallback-locale': 'null' } }
);