Skip to content

Commit 94f11de

Browse files
committed
Album selector save fix
1 parent 5337d25 commit 94f11de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/select-album.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,15 @@ export class SelectAlbum {
5858

5959
async addPhotosToAlbum(event: any, album: any) {
6060
event.preventDefault();
61-
await this.closePopover();
6261
if (this.startCallback) {
6362
this.startCallback();
6463
}
64+
await this.closePopover();
6565
const result: boolean = await PhotosService.addPhotosToAlbum(
6666
album.albumId,
6767
this.selectedPhotos
6868
);
69+
this.selectedPhotos = null;
6970
if (result) {
7071
this.present.toast('Photo(s) added to album "' + album.albumName + '".');
7172
} else {
@@ -82,7 +83,6 @@ export class SelectAlbum {
8283
const popoverController = document.querySelector('ion-popover-controller');
8384
await popoverController.componentOnReady();
8485
popoverController.dismiss();
85-
this.selectedPhotos = null;
8686
}
8787

8888
render() {

0 commit comments

Comments
 (0)