From edd09f98b3dc0c778eb0fb6f5575574aa5ebf004 Mon Sep 17 00:00:00 2001 From: ZoeLeeFZ Date: Thu, 24 Sep 2020 10:07:44 +0800 Subject: [PATCH] =?UTF-8?q?!1227=20=E4=BC=98=E5=8C=96:=E5=B1=82=E6=9D=BF?= =?UTF-8?q?=E8=BD=AC=E6=B4=BB=E5=8A=A8=E5=B1=82=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Add-on/ActivityLayerBoard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Add-on/ActivityLayerBoard.ts b/src/Add-on/ActivityLayerBoard.ts index f32bbcc1e..cd1843e16 100644 --- a/src/Add-on/ActivityLayerBoard.ts +++ b/src/Add-on/ActivityLayerBoard.ts @@ -29,7 +29,7 @@ export class ActicityLayerBoard implements Command Filter: { filterFunction: (obj, ent) => { - return ent instanceof Board && ent.BoardType === BoardType.Layer && ent.LayerNails.length === 0; + return ent instanceof Board && ent.BoardType === BoardType.Layer && ent.LayerNails.filter(i => !i.IsErase).length === 0; } } });