diff options
Diffstat (limited to 'src/state/models/user-local-photos.ts')
-rw-r--r-- | src/state/models/user-local-photos.ts | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/state/models/user-local-photos.ts b/src/state/models/user-local-photos.ts index 08b2b3901..b14e8a6a4 100644 --- a/src/state/models/user-local-photos.ts +++ b/src/state/models/user-local-photos.ts @@ -16,14 +16,9 @@ export class UserLocalPhotosModel { } async setup() { - await this._getPhotos() - } - - private async _getPhotos() { - CameraRoll.getPhotos({first: 20}).then(r => { - runInAction(() => { - this.photos = r.edges - }) + const r = await CameraRoll.getPhotos({first: 20}) + runInAction(() => { + this.photos = r.edges }) } } |