@pdfme/ui 4.2.5-dev.6 → 4.3.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.
- package/dist/index.es.js +88 -60
- package/dist/index.umd.js +8 -8
- package/package.json +1 -1
- package/src/components/Designer/index.tsx +1 -1
package/package.json
CHANGED
@@ -163,7 +163,7 @@ const TemplateEditor = ({
|
|
163
163
|
const pageSize = pageSizes[pageCursor];
|
164
164
|
|
165
165
|
const newSchemaKey = (prefix: string) => {
|
166
|
-
let keyNum = schemasList.reduce((acc, page) => acc + page.length,
|
166
|
+
let keyNum = schemasList.reduce((acc, page) => acc + page.length, 1);
|
167
167
|
let newKey = prefix + keyNum;
|
168
168
|
while (schemasList.some(page => page.find((s) => s.key === newKey))) {
|
169
169
|
keyNum++;
|