Skip to content

Commit

Permalink
bug solved
Browse files Browse the repository at this point in the history
  • Loading branch information
jfoclpf committed Jun 10, 2023
1 parent 51d426e commit 2cee410
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion www/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/* global $, cordova, device */

let DEBUG = true
let DEBUG = false

const app = {}

Expand Down
10 changes: 6 additions & 4 deletions www/js/photos.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ app.photos = (function (thisModule) {
console.log('photosAsBase64: ', photosAsBase64)

for (let i = 0; i < photosAsBase64.length; i++) {
app.form.displayImage(photosAsBase64[i], i + 1)
if (photosAsBase64[i]) {
app.form.displayImage(photosAsBase64[i], i + 1)
}
}

const imgNmbr = parseInt(window.localStorage.getItem('userCapturingPhotoNumber')) || 1
Expand Down Expand Up @@ -410,9 +412,9 @@ app.photos = (function (thisModule) {
}

function removeImage (num) {
photosUriOnFileSystem[num - 1] = null
photosAsBase64[num - 1] = null
photoWithGPS[num - 1] = null
photosUriOnFileSystem[num - 1] = ''
photosAsBase64[num - 1] = ''
photoWithGPS[num - 1] = ''
storePhotosArrays('ALL')
}

Expand Down

0 comments on commit 2cee410

Please sign in to comment.