From 9fa546253e085dce90fc583a7fe12e563dc3ad5d Mon Sep 17 00:00:00 2001 From: liwenzhen Date: Tue, 12 Oct 2021 17:22:38 +0800 Subject: [PATCH] fix for and if recursive function not ending when item of array is null Signed-off-by: liwenzhen Change-Id: Iad01050451017cacd1f14ae337c07358f0db77ef --- runtime/main/model/compiler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/main/model/compiler.ts b/runtime/main/model/compiler.ts index a674c970..2676d7dd 100644 --- a/runtime/main/model/compiler.ts +++ b/runtime/main/model/compiler.ts @@ -311,7 +311,7 @@ function compileShown( if (isBlock(dest) && dest.children) { dest.children.push(fragBlock); } - if (meta.repeat) { + if (hasOwn(meta, 'repeat')) { newMeta.repeat = meta.repeat; } bindShown(vm, target, fragBlock, newMeta);