From 7c6ce5af5c644a18f35244a738b44cbff4d3965c Mon Sep 17 00:00:00 2001 From: Nico Hoffmann Date: Wed, 27 Dec 2023 18:00:42 +0100 Subject: [PATCH] Structure field: clone row on duplicate Fixes #6073 --- panel/src/components/Forms/Field/StructureField.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panel/src/components/Forms/Field/StructureField.vue b/panel/src/components/Forms/Field/StructureField.vue index 7276c96d1c..f204495f36 100644 --- a/panel/src/components/Forms/Field/StructureField.vue +++ b/panel/src/components/Forms/Field/StructureField.vue @@ -457,7 +457,7 @@ export default { case "duplicate": this.add({ - ...row, + ...structuredClone(row), _id: this.$helper.uuid() }); break;