chore: more passing fields e2e

This commit is contained in:
James
2024-04-04 17:04:23 -04:00
parent 3d3305a312
commit da12efd675
4 changed files with 17 additions and 13 deletions

View File

@@ -72,7 +72,6 @@ export const LinkButton: React.FC = () => {
const { closeModal, openModal } = useModal()
const drawerSlug = useDrawerSlug('rich-text-link')
const { id, collectionSlug } = useDocumentInfo()
const { schemaPath } = useFieldProps()
const { richTextComponentMap } = fieldProps
@@ -97,8 +96,6 @@ export const LinkButton: React.FC = () => {
const state = await getFormState({
apiRoute: config.routes.api,
body: {
id,
collectionSlug,
data,
operation: 'update',
schemaPath: `${schemaPath}.${linkFieldsSchemaPath}`,