Altinn / Altinn/app-frontend-react
Duplicate Grid Component in PDF
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 33
- Avg merge
- 6d 23h
- Merged PRs (30d)
- 3
Description
### Description of the bug
A Summary2 component that references a Grid component gets duplicated in the PDF.
The first one is in the old style where all the components are displayed as a list, and the second one is displayed in the new style as a full grid.
The second one also appear at the end of the PDF, after other components.
Ideally the first one should be removed and be replaced with the second one so that only the grid version is visible.
### Steps To Reproduce
Create a Grid component
Create a Summary2 that references the Grid
In the summary page it looks correct, but in the PDF the Summary component is duplicated
### Additional Information
This behavior can be displayed in this repo: https://altinn.studio/repos/krt/krt-1189a-1
The frontend version used was ` v4.9.0-preview.3.`


Contributor guide
Research direction
The payload names no source files or tests. Reproduce the issue with a Grid referenced by a Summary2 in the linked example, then trace the PDF rendering path for the Summary2 and Grid components. Done means the PDF contains only the full-grid rendering in the correct position, without the duplicated list-style component.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100