mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
remove promise bug
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user