if_block exists check missing in block.p

#4629 fix
pull/4633/head
pushkin 6 years ago committed by GitHub
parent aa3dcc06d6
commit ab5b26e59d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -334,7 +334,11 @@ export default class IfBlockWrapper extends Wrapper {
`);
}
} else if (dynamic) {
block.chunks.update.push(b`${name}.p(#ctx, #dirty);`);
if (if_exists_condition) {
block.chunks.update.push(b`if (${if_exists_condition}) ${name}.p(#ctx, #dirty);`);
} else {
block.chunks.update.push(b`${name}.p(#ctx, #dirty);`);
}
}
if (if_exists_condition) {

Loading…
Cancel
Save