Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit e5591b6

Browse files
Only show the action picker in case an image was selected
1 parent 08fbe87 commit e5591b6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

demo-ng/app/tabs/mlkit/mlkit.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ export class MLKitComponent {
143143
}
144144

145145
reusePickedImage(): void {
146-
this.selectMLKitFeature(this.pickedImage);
146+
if (this.pickedImage) {
147+
this.selectMLKitFeature(this.pickedImage);
148+
}
147149
}
148150

149151
private selectMLKitFeature(imageSource: ImageSource): void {

0 commit comments

Comments
 (0)