remove promise bug

This commit is contained in:
Eudes Inácio
2022-12-20 17:06:19 +01:00
parent c8d62760ce
commit 111214d231
22 changed files with 128 additions and 42 deletions
@@ -98,7 +98,12 @@ export class ChatOptionsFeaturesPage implements OnInit {
const file = this.fileLoaderService.getFirstFile(input)
const imageData = await this.fileToBase64Service.convert(file)
let imageData;
try {
imageData = await this.fileToBase64Service.convert(file)
} catch (error) {
console.error('load picture chat',error)
}
this.capturedImage = imageData;
this.capturedImageTitle = file.name;