Skip to content

Commit cb55ee5

Browse files
committed
chore(runtime-vapor): tweak clean stale slots logic
1 parent 887b65a commit cb55ee5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/runtime-vapor/src/componentSlots.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export function initSlots(
8888
// delete stale slots
8989
for (const key in slotRecord) {
9090
if (
91+
slotRecord &&
9192
!(dynamicSlot && isArray(dynamicSlot)
9293
? dynamicSlot.some(s => s.name === key)
9394
: dynamicSlot.name === key)

0 commit comments

Comments
 (0)