From 13ff3f783c4f2a01f5da0ae8faaceeefdcd451d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eudes=20In=C3=A1cio?= Date: Sun, 3 Mar 2024 12:22:34 +0100 Subject: [PATCH] error crieating publication on tablet --- .../publication/new-publication/new-publication.page.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/shared/publication/new-publication/new-publication.page.ts b/src/app/shared/publication/new-publication/new-publication.page.ts index 20e1a0db1..02bc14b84 100644 --- a/src/app/shared/publication/new-publication/new-publication.page.ts +++ b/src/app/shared/publication/new-publication/new-publication.page.ts @@ -729,11 +729,12 @@ export class NewPublicationPage implements OnInit { data.forEach(async element => { this.filesSizeSum = this.filesSizeSum + element.size if (this.fileSizeToMB(this.filesSizeSum) <= 20) { - if(this.platform.is('ios')) - this.recordevideoIos(element.fullPath) + if(this.platform.is('ios')) { + this.recordevideoIos(element.fullPath) + } else { + this.recordVideoPc(element.fullPath) + } } else { - this.recordVideoPc(element.fullPath) - if (this.publicationFormMV.form.Files.length === 0) this.filesSizeSum = 0