Skip to content

Commit 19bbce6

Browse files
committed
chore: improve code
1 parent a62362d commit 19bbce6

File tree

1 file changed

+1
-0
lines changed
  • packages/compiler-core/src/transforms

1 file changed

+1
-0
lines changed

packages/compiler-core/src/transforms/vSlot.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ export function buildSlots(
209209

210210
vFor = findDir(slotElement, 'for')
211211
if (vFor) vForProps = vFor.exp
212+
else vForProps = undefined
212213
const slotFunction = buildSlotFn(slotProps, vForProps, slotChildren, slotLoc)
213214

214215
// check if this slot is conditional (v-if/v-for)

0 commit comments

Comments
 (0)