File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/qwik/src/core/client Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1770,7 +1770,9 @@ export const vnode_getPropStartIndex = (vnode: VNode): number => {
1770
1770
1771
1771
/** @internal */
1772
1772
export const vnode_getProps = ( vnode : VNode ) : unknown [ ] => {
1773
- return vnode [ vnode_getPropStartIndex ( vnode ) ] as unknown [ ] ;
1773
+ const propsIndex = vnode_getPropStartIndex ( vnode ) ;
1774
+ const props = vnode [ propsIndex ] ;
1775
+ return ! props ? ( vnode [ propsIndex ] = [ ] ) : ( vnode [ propsIndex ] as unknown [ ] ) ;
1774
1776
} ;
1775
1777
1776
1778
export const vnode_getParent = ( vnode : VNode ) : VNode | null => {
@@ -2135,7 +2137,7 @@ const VNodeArray = class VNode extends Array<any> {
2135
2137
lastChild ,
2136
2138
element ,
2137
2139
elementName ,
2138
- [ ]
2140
+ undefined
2139
2141
) as ElementVNode ;
2140
2142
}
2141
2143
@@ -2165,7 +2167,7 @@ const VNodeArray = class VNode extends Array<any> {
2165
2167
nextSibling ,
2166
2168
firstChild ,
2167
2169
lastChild ,
2168
- [ ]
2170
+ undefined
2169
2171
) as VirtualVNode ;
2170
2172
}
2171
2173
You can’t perform that action at this time.
0 commit comments