diff --git a/src/generators/dom/visitors/EachBlock.js b/src/generators/dom/visitors/EachBlock.js index 6093aa8811..dbb1d2c085 100644 --- a/src/generators/dom/visitors/EachBlock.js +++ b/src/generators/dom/visitors/EachBlock.js @@ -57,7 +57,7 @@ export default function visitEachBlock ( generator, block, state, node ) { } ` ); - if ( node.else.hasUpdateMethod ) { + if ( node.else._block.hasUpdateMethod ) { block.builders.update.addBlock( deindent` if ( !${each_block_value}.length && ${each_block_else} ) { ${each_block_else}.update( changed, ${params} ); diff --git a/test/runtime/samples/each-block-dynamic-else-static/_config.js b/test/runtime/samples/each-block-dynamic-else-static/_config.js index c3074a7aa5..6508c6ba5e 100644 --- a/test/runtime/samples/each-block-dynamic-else-static/_config.js +++ b/test/runtime/samples/each-block-dynamic-else-static/_config.js @@ -1,6 +1,4 @@ export default { - solo: true, - data: { animals: [ 'alpaca', 'baboon', 'capybara' ] },