Altinn / Altinn/app-frontend-react

Table-header for a custom-component inside a repeatable group displays value instead of label.

Open
#595 3 comments 0 reactions 0 assignees View on GitHub
area/table kind/bug org/dsb
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### Description of the bug

The table-header for a custom-component inside a repeatable group displays value instead of label.
In the example below i would expect the label of the codelist-option to be displayed, but instead the value is displayed.

![Kapture 2022-11-01 at 10 24 22](https://user-images.githubusercontent.com/66003225/199203667-eeb156f1-32db-4a49-8cdf-adcf67b8857e.gif)

### Steps To Reproduce

1. Clone [this](https://altinn.studio/repos/dsb/uhell-transport-av-farlig-gods/pulls/1) repo and checkout the "custom_web_component" branch.
2. Start the app and navigate to "Varetype/produkt involvert"-page
3. Add a product to the repeatable group.

### Additional Information

[This issue](https://github.com/Altinn/app-frontend-react/issues/596) may be related.
[Relevant slack conversation](https://altinn.slack.com/archives/C02EJ9HKQA3/p1666964899209489)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by running the linked repository on the "custom_web_component" branch and navigating to the specified page. Trace the table-header rendering for a custom component in a repeatable group; done means the codelist option's label, rather than its value, is displayed.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.