google / ground-platform

Ground hosted components: Web console, Cloud Functions, db config
http://groundplatform.org
Apache License 2.0
206 stars 88 forks source link

[Submission details] Multiple choice selections appear blank in web UI #2094

Closed gino-m closed 1 week ago

gino-m commented 1 week ago

Example: Image

The problem is here:

https://github.com/google/ground-platform/blob/bbeba0de3819498be3befbd74a2e987aa6759afb/web/src/app/pages/main-page-container/main-page/secondary-side-panel/submission-panel/submission-panel.component.html#L50-L52

getTaskMultipleChoiceSelections(task).values returns List<string>, not List<Option>.

Instead, we should be calling a function in the component to resolve the option id to its respective label, or create a UI-model object with the label in it.