Uploaded image for project: 'Horizon Stream'
  1. Horizon Stream
  2. HS-279

FE - Forms should not send empty strings if value entered then erased

    XMLWordPrintable

Details

    • Bug
    • Status: Done (View Workflow)
    • Minor
    • Resolution: Done
    • None
    • None
    • HS Aug 4 - Aug 18, 2022

    Description

      It seems that if we enter a value, eg lat/lon, and then erase it and send, we get a gql error that lat/lon are strings. It seems we may need to set them back to undefined. Other fields should be checked for the same issue.

       

      example error:

      GQL Error: CombinedError: [GraphQL] Variable 'latitude' has an invalid value : Expected type 'Float' but was 'String'. at fetchPlugin (villus.esm.js:276:43) at async Client.execute (villus.esm.js:376:13) at async Proxy.execute2 (villus.esm.js:669:21) at async save (AddDeviceCtrl.vue:127:3)

      Attachments

        Activity

          People

            cle chinh
            Mike Mike
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: