From 48d32b9d4054331ca648aefe6f266754c8eba789 Mon Sep 17 00:00:00 2001 From: zwx1126739 Date: Mon, 1 Jul 2024 10:20:52 +0800 Subject: [PATCH] =?UTF-8?q?fixed=2020013d9=20from=20https://gitee.com/hwrt?= =?UTF-8?q?zhanghong/applications=5Fnotes/pulls/275=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=A4=87=E5=BF=98=E5=BD=95jscrash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zwx1126739 --- common/utils/src/main/ets/default/baseUtil/FolderUtil.ets | 2 +- features/src/main/ets/components/CusDialogComp.ets | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/utils/src/main/ets/default/baseUtil/FolderUtil.ets b/common/utils/src/main/ets/default/baseUtil/FolderUtil.ets index 6d09c24..966f414 100644 --- a/common/utils/src/main/ets/default/baseUtil/FolderUtil.ets +++ b/common/utils/src/main/ets/default/baseUtil/FolderUtil.ets @@ -119,7 +119,7 @@ export class FolderUtil { if (folderData === undefined || folderData === null) { LogUtil.info(TAG, "isFolderMoveIn folderData undefined") } - if (folderData.uuid === undefined || folderData.uuid === null) { + if (folderData!.uuid === undefined || folderData!.uuid === null) { LogUtil.info(TAG, "isFolderMoveIn folderData uuid undefined") folderData.uuid = 'sys_def_unClassified_uuid'; } diff --git a/features/src/main/ets/components/CusDialogComp.ets b/features/src/main/ets/components/CusDialogComp.ets index 1afb2e0..4768679 100644 --- a/features/src/main/ets/components/CusDialogComp.ets +++ b/features/src/main/ets/components/CusDialogComp.ets @@ -319,7 +319,7 @@ struct NoteDataMoveItemComp { } .width(288) .height(56) - .visibility(FolderUtil.isFolderMoveIn(this.folderItem) ? Visibility.Visible : Visibility.None) + .visibility(FolderUtil.isFolderMoveIn(this.folderItem!) ? Visibility.Visible : Visibility.None) } }