From e6226b68cb1f1426c0fc7131f5ba8d8bd4ba11bf Mon Sep 17 00:00:00 2001 From: Simon He <13917107469@163.com> Date: Sat, 19 Nov 2022 01:29:30 +0800 Subject: [PATCH] chore: update --- src/compiler/compile/nodes/Binding.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compile/nodes/Binding.ts b/src/compiler/compile/nodes/Binding.ts index 71e51960db..a9d0c3e48d 100644 --- a/src/compiler/compile/nodes/Binding.ts +++ b/src/compiler/compile/nodes/Binding.ts @@ -101,7 +101,7 @@ export default class Binding extends Node { validate_binding_rest_properties(scope: TemplateScope) { this.expression.references.forEach(name => { const each_block = scope.get_owner(name); - if (!each_block || each_block.type !== 'EachBlock') return; + if (each_block?.type !== 'EachBlock') return; const rest_node = each_block.context_rest_properties.get(name); if (rest_node) { this.component.warn(rest_node as any, compiler_warnings.invalid_rest_eachblock_binding(name));