mirror of
https://gitee.com/openharmony/applications_photos
synced 2024-11-27 01:01:06 +00:00
update feature/thirdselect/src/main/ets/default/view/ThirdSelectPhotoBrowserBase.ets.
Signed-off-by: liujuan <liujuan76@h-partners.com>
This commit is contained in:
parent
399a3ea883
commit
4f946b2b06
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user