Skip to content

Commit

Permalink
Fixed imageindex comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoy committed Feb 14, 2019
1 parent d95ebf8 commit 189f7d7
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 189f7d7

Please sign in to comment.