Skip to content

Commit f9841f5

Browse files
author
jarruda
committed
fix(composables): Do not spread array inside concat function
1 parent 963f7a6 commit f9841f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/bootstrap-vue-3/src/composables/useFormCheck.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const getGroupClasses = (items: {
9393
const slotsToElements = (slots: Array<any>, nodeType: string, disabled: boolean) =>
9494
slots
9595
.reduce((acc: Array<any>, slot: any) => slot.type.name === 'Symbol(Fragment)' ?
96-
acc.concat(...slot.children) : acc.concat([slot]), [])
96+
acc.concat(slot.children) : acc.concat([slot]), [])
9797
.filter((e: any) => e.type.name === nodeType)
9898
.map((e: any) => {
9999
const txtChild = (e.children.default ? e.children.default() : []).find(

0 commit comments

Comments
 (0)