From 64586ecc37923ea4f06d4334dc4126ef9ef28d2f Mon Sep 17 00:00:00 2001 From: Valentin Serra Date: Fri, 31 May 2024 11:29:36 +0200 Subject: [PATCH] fix: ensure group paths are properly registered on add Closes #1173 --- packages/form-js-viewer/src/core/FieldFactory.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/form-js-viewer/src/core/FieldFactory.js b/packages/form-js-viewer/src/core/FieldFactory.js index df4b2714e..499b3a914 100644 --- a/packages/form-js-viewer/src/core/FieldFactory.js +++ b/packages/form-js-viewer/src/core/FieldFactory.js @@ -88,13 +88,11 @@ export class FieldFactory { this._enforceDefaultPath(field); } - if (field.path) { - this._pathRegistry.claimPath(this._pathRegistry.getValuePath(field), { - isRepeatable: config.repeatable, - claimerId: field.id, - knownAncestorIds: getAncestryList(_parent, this._formFieldRegistry), - }); - } + this._pathRegistry.claimPath(this._pathRegistry.getValuePath(field), { + isRepeatable: config.repeatable, + claimerId: field.id, + knownAncestorIds: getAncestryList(_parent, this._formFieldRegistry), + }); } return field;