@processmaker/screen-builder 3.5.5 → 3.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@processmaker/screen-builder",
3
- "version": "3.5.5",
3
+ "version": "3.5.6",
4
4
  "scripts": {
5
5
  "dev": "VITE_COVERAGE=true vite",
6
6
  "build": "vite build",
@@ -300,6 +300,7 @@
300
300
  <button
301
301
  class="btn btn-sm btn-primary mr-2"
302
302
  :title="$t('Copy Control')"
303
+ data-test="copy-control-btn"
303
304
  @click="duplicateItem(index)"
304
305
  >
305
306
  <i class="fas fa-copy text-light" />
@@ -1326,7 +1327,7 @@ export default {
1326
1327
  this.updateState();
1327
1328
  },
1328
1329
  duplicateItem(index) {
1329
- const duplicate = _.cloneDeep(this.config[this.currentPage].items[index]);
1330
+ const duplicate = _.cloneDeep(this.extendedPages[this.currentPage].items[index]);
1330
1331
  this.updateUuids(duplicate);
1331
1332
  this.extendedPages[this.currentPage].items.push(duplicate);
1332
1333
  },