From 27125afe75c2f24bc69d30a1b90da402923596e2 Mon Sep 17 00:00:00 2001 From: lukasnys Date: Fri, 12 Jul 2024 15:06:27 +0200 Subject: [PATCH] fix: copy all options from group --- addon/utils/group-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/utils/group-utils.ts b/addon/utils/group-utils.ts index 60bdc905d..202301ee1 100644 --- a/addon/utils/group-utils.ts +++ b/addon/utils/group-utils.ts @@ -94,7 +94,7 @@ export function optionAtIndex(originalCollection: any, index: number): { disable export interface Group { options: any[], disabled?: boolean, groupName: string } function copyGroup(group: Group, suboptions: any[]): Group { - let groupCopy: Group = { groupName: group.groupName, options: suboptions }; + let groupCopy: Group = { ...group, options: suboptions }; if (group.hasOwnProperty('disabled')) { groupCopy.disabled = group.disabled; }