Skip to content

Commit 6281628

Browse files
authored
fix
1 parent 1e5e976 commit 6281628

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/@glimmer/runtime/lib/vm/element-builder.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ export class NewElementBuilder implements ElementBuilder {
256256

257257
private pushModifiers(modifiers: Nullable<ModifierInstance[]>): void {
258258
this.modifierStack.push(modifiers);
259-
if (modifiers && this.env.debugRenderTree) {
259+
if (this.env.debugRenderTree) {
260+
modifiers = modifiers || []
260261
const htmlState = {};
261262
this.htmlElementsState.push(htmlState);
262263
const shouldAddHtmlElement = modifiers.length || globalThis.ENV_DEBUG_RENDER_TREE_ALL_ELEMENTS

0 commit comments

Comments
 (0)