Skip to content

Commit 446986b

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-vapor/src/componentSlots.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export function initSlots(
8888
// delete stale slots
8989
for (const key in slotRecord) {
9090
if (
91-
slotRecord &&
91+
slotRecord[key] &&
9292
!(dynamicSlot && isArray(dynamicSlot)
9393
? dynamicSlot.some(s => s.name === key)
9494
: dynamicSlot.name === key)

0 commit comments

Comments
 (0)