From e18b20faf2651bfb1a6b693921a2316751872090 Mon Sep 17 00:00:00 2001 From: Alix JEUDI--LEMOINE Date: Mon, 2 Jun 2025 10:37:09 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Update=20getFileNames=20method?= =?UTF-8?q?=20to=20handle=20string=20file=20inputs=20correctly=20(fix=20er?= =?UTF-8?q?ror=20in=20console=20when=20editing=20pin)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/edit-pin-popup/edit-pin-popup.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/components/edit-pin-popup/edit-pin-popup.component.ts b/src/app/components/edit-pin-popup/edit-pin-popup.component.ts index bc042ed..ae0364e 100644 --- a/src/app/components/edit-pin-popup/edit-pin-popup.component.ts +++ b/src/app/components/edit-pin-popup/edit-pin-popup.component.ts @@ -293,7 +293,11 @@ export class EditPinPopupComponent implements OnInit, OnDestroy { getFileNames(): string[] { return this.files.map(file => { - return file.name.split("|")[0]; + if(typeof file === 'string') { + return file; + } else { + return file.name.split("|")[0]; + } }); } }