@pixldocs/canvas-renderer 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -10066,18 +10066,18 @@ async function resolveFromForm(options) {
10066
10066
  }
10067
10067
  }
10068
10068
  const flatFormData = flattenSectionStateToFormData(mergedSectionState, inferredSections);
10069
- const dynamicFields = templateConfig.dynamicFields;
10069
+ const configDynamicFields = templateConfig.dynamicFields;
10070
+ const formSchemaDynamicFields = templateFormSchema == null ? void 0 : templateFormSchema.dynamicFields;
10071
+ const dynamicFields = ((configDynamicFields == null ? void 0 : configDynamicFields.length) ? configDynamicFields : formSchemaDynamicFields) || [];
10070
10072
  const mappings = [];
10071
- if (dynamicFields) {
10072
- for (const field of dynamicFields) {
10073
- if (field.mappings) {
10074
- for (const m of field.mappings) {
10075
- mappings.push({
10076
- field_key: field.id,
10077
- element_id: m.elementId,
10078
- target_property: m.targetProperty
10079
- });
10080
- }
10073
+ for (const field of dynamicFields) {
10074
+ if (field.mappings) {
10075
+ for (const m of field.mappings) {
10076
+ mappings.push({
10077
+ field_key: field.id,
10078
+ element_id: m.elementId,
10079
+ target_property: m.targetProperty
10080
+ });
10081
10081
  }
10082
10082
  }
10083
10083
  }