Skip to content

using requestDataFromUser with source erros does not allow me to input any data #133

@leognmotta

Description

@leognmotta
  • I'm submitting a ...
    [x] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [x] question about how to use this project

  • Summary

For some reason, I am using requestDataFromUser just like @fuchien is using, when I open the modal with errors array, I can't input any data to fix the errors, just following this code snippet from your docs

const passedInData = {
  source: [
    {
      data: {firstName: "John", email: "john@doe.com", userId: 12345},
      errors: [{key: "userId", message: "userId already exists in database", level: "error"}]
    },
    {
      data: {firstName: "", email: "jane@doe", userId: 54321},
      errors: [
        {key: "firstName", message: "Name cannot be blank", level: "error"},
        {key: "email", message: "Email invalid. Please correct email address", level: "error"}
      ]
    }
  ]
}

const launchFlatfile = () => {
  importer.requestDataFromUser(passedInData)
}

and it does not work when the modal opens, it shows the red fields with correct validations, but I can't update any value

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions on how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

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