@pdfme/ui 6.1.2-dev.6 → 6.1.2-dev.8

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
@@ -46665,6 +46665,10 @@ var getDynamicTemplate = async (arg) => {
46665
46665
  const PARALLEL_LIMIT = 10;
46666
46666
  for (let pageIndex = 0; pageIndex < template.schemas.length; pageIndex++) {
46667
46667
  const pageSchemas = template.schemas[pageIndex];
46668
+ if (pageSchemas.length === 0) {
46669
+ resultPages.push([]);
46670
+ continue;
46671
+ }
46668
46672
  const { items, orderMap } = normalizePageSchemas(pageSchemas, paddingTop);
46669
46673
  for (let i = 0; i < items.length; i += PARALLEL_LIMIT) {
46670
46674
  const chunk = items.slice(i, i + PARALLEL_LIMIT);
@@ -46681,7 +46685,6 @@ var getDynamicTemplate = async (arg) => {
46681
46685
  const processedPages = processDynamicPage(items, orderMap, contentHeight, paddingTop);
46682
46686
  resultPages.push(...processedPages);
46683
46687
  }
46684
- removeTrailingEmptyPages(resultPages);
46685
46688
  if (resultPages.length === template.schemas.length) {
46686
46689
  let unchanged = true;
46687
46690
  for (let i = 0; i < resultPages.length && unchanged; i++) {