seangray-dev / formail-app

Formail offers a streamlined approach to form management, enabling instant notifications and dynamic data handling without pre-structured forms. Ideal for developers, small businesses, and anyone needing efficient form submission management, Formail simplifies the process, making it accessible and user-friendly.
https://www.formail.dev
MIT License
1 stars 0 forks source link

fix: export page date selection #22

Closed seangray-dev closed 6 months ago

seangray-dev commented 7 months ago

On the export page, within the period start to period end date picker input, when clicking on the currently selected date we encounter this error:

Unhandled Runtime Error
Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
Unhandled Runtime Error
Error: [CONVEX Q(submissions:getSubmissionsByDateRange)] [Request ID: 893cc8352891733c] Server Error
ArgumentValidationError: Object is missing the required field `formId`. Consider wrapping the field validator in `v.optional(...)` if this is expected.

Object: {fromDate: 1708995504988.0, toDate: 1711583904988.0}
Validator: v.object({formId: v.id("forms"), fromDate: v.float64(), toDate: v.float64()})

  Called by client