From ea263ce5673cb74de76f3dd581aa4f4714e88f05 Mon Sep 17 00:00:00 2001 From: pushkin Date: Mon, 6 Apr 2020 23:16:21 +0200 Subject: [PATCH] Update Component.ts --- src/compiler/compile/Component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compile/Component.ts b/src/compiler/compile/Component.ts index e0c2cfcd8f..bb1546ceee 100644 --- a/src/compiler/compile/Component.ts +++ b/src/compiler/compile/Component.ts @@ -1250,7 +1250,7 @@ export default class Component { } const add_declaration = declaration => { - if (!~this.reactive_declarations.indexOf(declaration)) return; + if (this.reactive_declarations.includes(declaration)) return; declaration.dependencies.forEach(name => { if (declaration.assignees.has(name)) return;