Skip to content

Commit

Permalink
converts SSTKNUM to numbers to be able to compare
Browse files Browse the repository at this point in the history
  • Loading branch information
Carolina Capetillo authored and Carolina Capetillo committed Sep 27, 2023
1 parent 60d1c21 commit d117cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/images.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const getters = {
const maxSSTKNUMs = state.recent_images.reduce((acc, cur) => {
if (!cur.header || !cur.header.SMARTSTK || !cur.header.SSTKNUM) return acc // Skip if missing header, SMARTSTK or SSTKNUM

if (!acc[cur.header.SMARTSTK] || cur.header.SSTKNUM > acc[cur.header.SMARTSTK]) {
if (!acc[cur.header.SMARTSTK] || Number(cur.header.SSTKNUM) > Number(acc[cur.header.SMARTSTK])) {
acc[cur.header.SMARTSTK] = cur.header.SSTKNUM
}
return acc
Expand Down

0 comments on commit d117cb1

Please sign in to comment.