Skip to content

Omission of optional image during data collection requires page reload when viewed on web app #2135

Open
@gis-wes

Description

@gis-wes

Describe the bug

(Changes occurred recently in in the submission-data-converter code, and I have not upgraded the application yet to know whether the issue was resolved.)

An optional image element on a job can be skipped in the android app. Attempting to view this entry in the web application leads to a loading icon in the submission list that will not go away until the page is refreshed in the browser.

To Reproduce
Steps to reproduce the behavior:

  1. Create an optional image for a job in the web app.
  2. Collect data with and without images in the android app.
  3. Return to the job in the web app
  4. Select entries that did not have an image
  5. The loading icon will load and prevent further selections.

Expected behavior

The page should load without error and omit the image that was skipped.

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Image

This error exist in the console:

Stacktrace:
ERROR Error: Error converting to Submission: invalid task data
    at submission-data-converter.ts:99:16
    at Array.forEach (<anonymous>)
    at taskDataPbToModel (submission-data-converter.ts:64:6)
    at submissionDocToModel (submission-data-converter.ts:121:5)
    at data-store.service.ts:410:37
    at Array.map (<anonymous>)
    at data-store.service.ts:409:16

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions