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

forms.listSubmissions() Incorrectly Typed #154

Closed
tkcranny opened this issue Aug 6, 2024 · 1 comment
Closed

forms.listSubmissions() Incorrectly Typed #154

tkcranny opened this issue Aug 6, 2024 · 1 comment

Comments

@tkcranny
Copy link

tkcranny commented Aug 6, 2024

Hey folks,

response = await webflow.forms.listSubmissions() incorrectly types the payload with a .submissions entry, when the actual data returned from the API is accessed under the .formSubmissions property.

My solution at the moment has to use (response as any).formSubmissions as FormSubmission[]

image
@zplata
Copy link
Contributor

zplata commented Aug 26, 2024

Hi @tkcranny! This should be fixed in v2.3.6 where you should be able to use .formSubmissions without a manual type cast:
https://github.com/webflow/js-webflow-api/releases/tag/v2.3.6

Feel free to open a new issue if you still have troubles here.

@zplata zplata closed this as completed Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants