Skip to content

Commit

Permalink
fix: copy all options from group
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasnys committed Jul 12, 2024
1 parent f547046 commit 27125af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/utils/group-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 27125af

Please sign in to comment.