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]; + } }); } }