From b81e92ef9eae2c1c5d3a48a11a33848e8e4acc34 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Tue, 9 Jul 2024 21:10:05 +0200 Subject: [PATCH] Fix for fieldCollection --- src/helpers/ContentType.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/ContentType.ts b/src/helpers/ContentType.ts index 5c0368f9..7ac64c8e 100644 --- a/src/helpers/ContentType.ts +++ b/src/helpers/ContentType.ts @@ -186,7 +186,7 @@ export class ContentType { fields.splice(fieldIdx, 1, ...fieldGroup.fields); } } else if (field && field.type === 'fields') { - fields = field.fields || []; + field.fields = field.fields || []; } } }