From a30c5d6c9de529da14b5962156232d683a9f61ca Mon Sep 17 00:00:00 2001 From: kejintao Date: Mon, 25 Mar 2024 16:33:22 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20ad824c5=20from=20https://gitee.com/danc?= =?UTF-8?q?ingke/applications=5Fsystemui/pulls/451=20=E8=BF=9B=E8=A1=8C12?= =?UTF-8?q?=E5=B0=8F=E6=97=B6=E7=A8=B3=E5=AE=9A=E6=80=A7=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=EF=BC=8C=E5=87=BA=E7=8E=B0jscrash=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: kejintao --- .../src/main/ets/com/ohos/noticeItem/view/item/generalItem.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/noticeitem/src/main/ets/com/ohos/noticeItem/view/item/generalItem.ets b/features/noticeitem/src/main/ets/com/ohos/noticeItem/view/item/generalItem.ets index e3954cf9..87a24cd8 100644 --- a/features/noticeitem/src/main/ets/com/ohos/noticeItem/view/item/generalItem.ets +++ b/features/noticeitem/src/main/ets/com/ohos/noticeItem/view/item/generalItem.ets @@ -84,7 +84,7 @@ export default struct GeneralItem { itemData: this.itemData }); - if (this.isExpand && this.itemData.actionButtons.length) { + if (this.isExpand && this.itemData.actionButtons?.length) { ActionComponent({ itemData: this.itemData }) } else { Blank().height(Layout.ITEM_MARGIN)