!610 【OpenHarmony 5.0.1.102】【RK3568】【压力测试】【ToC】【低概率1/10】【wukong】出现1次 进程com.ohos.photos下出现jscrash,栈名:updateActionBar

Merge pull request !610 from liujuan/master
This commit is contained in:
openharmony_ci 2024-10-25 07:50:18 +00:00 committed by Gitee
commit 5da8fc5e3e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -438,11 +438,11 @@ export struct PhotoBrowserComponent {
if (currentPhoto == undefined || this.isFromViewDataWithThirdUri) {
return;
}
this.photoDate = DateUtil.getLocalizedDate(currentPhoto?.getDataTaken());
this.photoDate = DateUtil.getLocalizedDate(currentPhoto?.getDataTaken?.());
if (this.pageFrom == Constants.ENTRY_FROM.DISTRIBUTED) {
this.timeAndLocation = `${this.deviceName}/${DateUtil.getLocalizedTime(currentPhoto?.getDataTaken())}`;
this.timeAndLocation = `${this.deviceName}/${DateUtil.getLocalizedTime(currentPhoto?.getDataTaken?.())}`;
} else {
this.timeAndLocation = DateUtil.getLocalizedTime(currentPhoto?.getDataTaken());
this.timeAndLocation = DateUtil.getLocalizedTime(currentPhoto?.getDataTaken?.());
}
this.updateMenu(index);
}