@kontur.candy/generator 5.97.0 → 5.98.0

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -82611,7 +82611,9 @@ class FormConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_7__.Sug
82611
82611
  formMarkupBuilder.prop(x => x.externalInitSectionAction).set(context.generateHelperFunctionExpression(formNode, "onClick", formNode.onExternalInitSection));
82612
82612
  }
82613
82613
  if (formNode.zeroreportoptions) {
82614
- formMarkupBuilder.prop(x => x.zeroReportOptions).set(this.getConverterResultFromAttributeWithMarkup(context, formNode.zeroreportoptions.children));
82614
+ if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.arrayHasAtLeastOneItem)(formNode.zeroreportoptions.children)) {
82615
+ formMarkupBuilder.prop(x => x.zeroReportOptions).set(this.getConverterResultFromAttributeWithMarkup(context, formNode.zeroreportoptions.children));
82616
+ }
82615
82617
  formMarkupBuilder.prop(x => x.zeroReportValidationPath).set(formNode.zeroreportoptions.dataScope.path);
82616
82618
  formMarkupBuilder.prop(x => x.zeroReportDescription).set(formNode.zeroreportoptions.description);
82617
82619
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "5.97.0",
3
+ "version": "5.98.0",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,