InseeFr / InseeFr/Lunatic

non paginated loop : controls are not displayed if loop dimension is "static"

Open
#1,152 2 comments 0 reactions 1 assignee Claimed by @Grafikart View on GitHub
Type: Bug
Dominant language
TypeScript
Stars
22
Forks
21
Avg merge
9h 13m
Merged PRs (30d)
2

Description

## Describe the bug

When setting a non paginated loop with a fixed value of min/max number of iterations (even if it is defined by an external variable) , controls are not displayed.

There is no problem if the dimension is defined by a non static value (collected, calculated with real calculation...).

The problem is present, with and without Question component.

- [x] I tested it on the storybook, which leads me to believe that it's a lunatic bug.

## To Reproduce

Steps to reproduce the behavior:

[working.json](https://github.com/user-attachments/files/17073749/working.json)
[not_working.json](https://github.com/user-attachments/files/17073751/not_working.json)

## Expected behavior

Controls should be displayed in non paginated loop whatever how we define the number of iterations

## Screenshots

## Version where the bug appeared

## Browser where the bug was tested

- [ ] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Edge
- [ ] Other (please specify): ******\_\_\_******

## Additional context

Add any other context about the problem here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.