Closed gino-m closed 1 week ago
Example:
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>.
getTaskMultipleChoiceSelections(task).values
List<string>
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.
Example:
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
returnsList<string>
, notList<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.