Skip to content

API endpoint being hit when there are JS validation errors. #585

@ethangardner

Description

@ethangardner

Describe the bug
The SSR version of the app fires PUT requests, even when there are JS validation errors in the form editor

To Reproduce
Steps to reproduce the behavior:

  1. Create a new form on the SSR version of the app.
  2. Add a new short answer component
  3. Click save and close
  4. See error reflected in the UI state and a PUT request error in the browser console.

Expected behavior
JS validation errors should prevent the API from being called if possible

Server log from above

@gsa-tts/forms-server:dev: input { label: { type: 'required', message: 'A field label is required' } }
@gsa-tts/forms-server:dev: Pattern config error: A field label is required

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions