Skip to content

Commit c12cdd5

Browse files
authored
Merge pull request #68 from hdntecnologiabr/fix/length-of-undefined
fix: length of undefined
2 parents 0b04703 + d297224 commit c12cdd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/camera/camera.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class CameraPWA {
137137
async initPhotoCapabilities(imageCapture: any) {
138138
const c = await imageCapture.getPhotoCapabilities();
139139

140-
if (c.fillLightMode.length > 1) {
140+
if (c.fillLightMode && c.fillLightMode.length > 1) {
141141
this.flashModes = c.fillLightMode.map(m => m);
142142

143143
// Try to recall the current flash mode

0 commit comments

Comments
 (0)