Teact: Remove likely redundant code

This commit is contained in:
Alexander Zinchuk 2023-07-20 15:57:59 +02:00
parent b6982dcd46
commit e544763ab9

View File

@ -234,11 +234,6 @@ function initComponent(
if (componentInstance.mountState === MountState.New) {
$element = mountComponent(componentInstance);
setupComponentUpdateListener(parentEl, $element, $parent, index);
const $firstChild = $element.children[0];
if ($firstChild.type === VirtualType.Component) {
$element.children[0] = initComponent(parentEl, $firstChild, $element, 0);
}
}
return $element;