|
|
@ -250,8 +250,8 @@ export default class IfBlockWrapper extends Wrapper {
|
|
|
|
const select_block_type = this.renderer.component.get_unique_name(`select_block_type`);
|
|
|
|
const select_block_type = this.renderer.component.get_unique_name(`select_block_type`);
|
|
|
|
const current_block_type = block.get_unique_name(`current_block_type`);
|
|
|
|
const current_block_type = block.get_unique_name(`current_block_type`);
|
|
|
|
const get_block = has_else
|
|
|
|
const get_block = has_else
|
|
|
|
? x`${current_block_type} && ${current_block_type}(#ctx)`
|
|
|
|
? x`${current_block_type}(#ctx)`
|
|
|
|
: x`${current_block_type}(#ctx)`
|
|
|
|
: x`${current_block_type} && ${current_block_type}(#ctx)`
|
|
|
|
|
|
|
|
|
|
|
|
/* eslint-disable @typescript-eslint/indent,indent */
|
|
|
|
/* eslint-disable @typescript-eslint/indent,indent */
|
|
|
|
if (this.needs_update) {
|
|
|
|
if (this.needs_update) {
|
|
|
|