diff --git a/src/components/loop/roster-for-loop/roster-for-loop.tsx b/src/components/loop/roster-for-loop/roster-for-loop.tsx
index c795976f1..cb0686f7f 100644
--- a/src/components/loop/roster-for-loop/roster-for-loop.tsx
+++ b/src/components/loop/roster-for-loop/roster-for-loop.tsx
@@ -31,7 +31,7 @@ export const RosterForLoop = createCustomizableLunaticField<
handleChange,
declarations,
label,
- headers,
+ header,
iterations,
id,
getComponents,
@@ -71,7 +71,7 @@ export const RosterForLoop = createCustomizableLunaticField<
-
+
{times(nbRows, (n) => {
const components = getComponents(n);
diff --git a/src/components/type.ts b/src/components/type.ts
index 21ac4cc38..5c7876726 100644
--- a/src/components/type.ts
+++ b/src/components/type.ts
@@ -94,7 +94,7 @@ type ComponentPropsByType = {
getComponents: (n: number) => FilledLunaticComponentProps[];
executeExpression: LunaticState['executeExpression'];
value: Record;
- headers?: Array<{ label: ReactNode }>;
+ header?: Array<{ label: ReactNode }>;
paginatedLoop?: boolean;
};
Loop: LunaticBaseProps & {
@@ -103,7 +103,7 @@ type ComponentPropsByType = {
getComponents: (n: number) => FilledLunaticComponentProps[];
executeExpression: LunaticState['executeExpression'];
value: Record;
- headers?: Array<{ label: ReactNode }>;
+ header?: Array<{ label: ReactNode }>;
paginatedLoop?: boolean;
};
Table: LunaticBaseProps & {
diff --git a/src/stories/loop/source-with-header.json b/src/stories/loop/source-with-header.json
index f72022ae7..fd7c342a2 100644
--- a/src/stories/loop/source-with-header.json
+++ b/src/stories/loop/source-with-header.json
@@ -14,7 +14,7 @@
{
"id": "loop-prenom",
"componentType": "RosterForLoop",
- "headers": [
+ "header": [
{ "headerCell": true, "label": "Prénom" },
{ "headerCell": true, "label": "Age" }
],
diff --git a/src/use-lunatic/commons/fill-components/fill-component-expressions.ts b/src/use-lunatic/commons/fill-components/fill-component-expressions.ts
index 4e229099b..6972daa16 100644
--- a/src/use-lunatic/commons/fill-components/fill-component-expressions.ts
+++ b/src/use-lunatic/commons/fill-components/fill-component-expressions.ts
@@ -26,7 +26,6 @@ const VTL_ATTRIBUTES = [
'xAxisIterations',
'yAxisIterations',
'conditionFilter',
- 'headers.label',
'header.label',
'disabled',
'readOnly',