dont try to attachChildren if theres not htmlElement supplied
This commit is contained in:
parent
3c504bd1cd
commit
5763d264b8
|
@ -24,6 +24,8 @@ export const attachChildren = initialiseOpts => (htmlElement, options) => {
|
|||
childNode.destroy()
|
||||
}
|
||||
|
||||
if (!htmlElement) return
|
||||
|
||||
if (hydrate) {
|
||||
while (htmlElement.firstChild) {
|
||||
htmlElement.removeChild(htmlElement.firstChild)
|
||||
|
|
Loading…
Reference in New Issue