update feature/thirdselect/src/main/ets/default/view/ThirdSelectPhotoBrowserBase.ets.

Signed-off-by: liujuan <liujuan76@h-partners.com>
This commit is contained in:
liujuan 2023-07-28 06:35:43 +00:00 committed by Gitee
parent 399a3ea883
commit 4f946b2b06
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -247,7 +247,9 @@ export struct ThirdSelectPhotoBrowserBase {
}
getCurrentPhoto(): MediaItem {
return this.dataSource.getData(this.currentIndex).data;
if(this.dataSource) {
return this.dataSource.getData(this.currentIndex).data;
}
}
onBackPress() {