We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d605a41 commit 49c3202Copy full SHA for 49c3202
1 file changed
core/pfe-core/controllers/slot-controller.ts
@@ -152,7 +152,7 @@ export class SlotController implements ReactiveController {
152
if (isServer) {
153
return [];
154
} else if (this.#nodes.has(name)) {
155
- return this.#nodes.get(name)!.slot?.assignedElements?.() as T[];
+ return (this.#nodes.get(name)!.slot?.assignedElements?.() ?? []) as T[];
156
} else {
157
const children = Array.from(this.host.children) as T[];
158
return children.filter(isSlot(name));
0 commit comments