|
|
|
@ -63,7 +63,7 @@ export default class EachBlock extends AbstractBlock {
|
|
|
|
([this.const_tags, this.children] = get_const_tags(info.children, component, this, this));
|
|
|
|
([this.const_tags, this.children] = get_const_tags(info.children, component, this, this));
|
|
|
|
|
|
|
|
|
|
|
|
if (this.has_animation) {
|
|
|
|
if (this.has_animation) {
|
|
|
|
this.children = this.children.filter(child => !isEmptyNode(child));
|
|
|
|
this.children = this.children.filter(child => !(child.type == 'Comment' || isEmptyNode(child)));
|
|
|
|
|
|
|
|
|
|
|
|
if (this.children.length !== 1) {
|
|
|
|
if (this.children.length !== 1) {
|
|
|
|
const child = this.children.find(child => !!(child as Element).animation);
|
|
|
|
const child = this.children.find(child => !!(child as Element).animation);
|
|
|
|
|