diff --git a/demo/collections/AllFields.js b/demo/collections/AllFields.js index 509ef72179..2b3b1ba2c2 100644 --- a/demo/collections/AllFields.js +++ b/demo/collections/AllFields.js @@ -6,7 +6,7 @@ const AllFields = { }, useAsTitle: 'text', preview: (doc, token) => { - if (doc.text) { + if (doc && doc.text) { return `http://localhost:3000/previewable-posts/${doc.text.value}?preview=true&token=${token}`; } @@ -125,6 +125,12 @@ const AllFields = { }, ], }, + { + type: 'text', + name: 'repeaterText3', + label: 'Repeater Text 3', + readOnly: true, + }, ], }, ], diff --git a/demo/collections/CustomComponents/components/fields/Group/Field/index.js b/demo/collections/CustomComponents/components/fields/Group/Field/index.js new file mode 100644 index 0000000000..9bfd1b906e --- /dev/null +++ b/demo/collections/CustomComponents/components/fields/Group/Field/index.js @@ -0,0 +1,21 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import { Group } from '../../../../../../../field-types'; + +const CustomGroup = (props) => { + return ( +