Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UploadField doesn't work in a purely react form #1415

Open
2 tasks
GuySartorelli opened this issue Dec 11, 2022 · 1 comment
Open
2 tasks

UploadField doesn't work in a purely react form #1415

GuySartorelli opened this issue Dec 11, 2022 · 1 comment

Comments

@GuySartorelli
Copy link
Member

UploadField isn't working in a purely react form. Clicking on "choose existing" results in an Invariant Violation:

Could not find "client" in the context or passed in as a prop. Wrap the root component in an <ApolloProvider>, or pass an ApolloClient instance in via props

Trying to upload a new file results in a 403 error

Action 'TestEditForm' isn't allowed on class TestReactFormBuilder.

This can be seen in the react form at /admin/test-react/ added in the frameworktest module.

Acceptance criteria

  • UploadField works as expected in a purely react form
  • We have some test added to CI to confirm this continues to work
@maxime-rainville
Copy link
Contributor

Let's maybe double check that the problem is not just with that react form in frameworktest before we scope this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants