chore: Nx 17+ (#10449)

This commit is contained in:
Nathan Walker
2023-11-25 10:58:41 -08:00
committed by GitHub
parent 40b2a6a6db
commit 2237c9be4f
11 changed files with 68 additions and 54 deletions

View File

@@ -22,10 +22,11 @@ export class DemoModel extends Observable {
.then(() => {
return context.present();
})
.then((selection) => {
const imageAsset = selection.length > 0 ? selection[0] : null;
if (imageAsset) {
.then((selections) => {
const selection = selections.length > 0 ? selections[0] : null;
if (selection) {
this.addingPhoto = true;
const imageAsset = selection.asset;
ImageSource.fromAsset(imageAsset).then(
(savedImage) => {