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-10-17 08:40:10 +00:00 committed by Gitee
parent e91a00916e
commit f0ac55b305
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -250,9 +250,8 @@ export struct ThirdSelectPhotoBrowserBase {
}
getCurrentPhoto(): MediaItem {
if(this.dataSource) {
return this.dataSource.getData(this.currentIndex).data;
}
Log.debug(TAG, 'getCurrentPhoto ' + this.currentIndex);
return this.dataSource.getData(this.currentIndex)?.data;
}
onBackPress() {