cds-snc / platform-forms-client

NextJS application that serves the public-facing website for Forms
https://forms-staging.cdssandbox.xyz/
MIT License
28 stars 12 forks source link

Add early return for responses page when a form hasn't been saved yet #3824

Closed timarney closed 2 weeks ago

timarney commented 2 weeks ago

Summary | Résumé

Fixes issue where a user could land on the responses page with a form that has never been saved (doesn't have form responses).

Adds early return to avoid API lookup which throws

 Forms
 - Template 0000 must have associated owners to access responses
github-actions[bot] commented 2 weeks ago

:test_tube: Review environment

https://oage3dgwd3rwngx5titsgiwini0pnzhn.lambda-url.ca-central-1.on.aws/

timarney commented 2 weeks ago

Noting other string will still fall-through but will merge this.