Skip to content

Commit

Permalink
Merge pull request #161 from julianpoy/fix-image-index-lcb-import
Browse files Browse the repository at this point in the history
Fixed imageindex comparison
  • Loading branch information
julianpoy authored Feb 14, 2019
2 parents d95ebf8 + 189f7d7 commit b2903e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Backend/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ router.post(
return new Promise(resolve => {
let lcbImages = (tableMap.t_recipeimage || [])
.filter(el => el.recipeid == lcbRecipe.recipeid)
.sort((a, b) => a.imageindex.localeCompare(b.imageindex))
.sort((a, b) => a.imageindex > b.imageindex)

if (lcbImages.length == 0) return resolve()

Expand Down

0 comments on commit b2903e1

Please sign in to comment.