Skip to content

Commit

Permalink
issue/manual-granule-input-hotfix: fixed how ranged of scenes are pro…
Browse files Browse the repository at this point in the history
…cessed (#86)

Co-authored-by: jbyrne <[email protected]>
  • Loading branch information
jbyrne6 and jbyrne authored Feb 6, 2024
1 parent 81b5740 commit 0871ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/sidebar/GranulesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ const validateSceneAvailability = async (cycleToUse: number, passToUse: number,
// String(+(stringParam)) is used to remove the leading zeros
const cycleToUse = String(+(cycleParam ?? cycle))
const passToUse = String(+(passParam ?? pass))
const sceneToUse = String(+(sceneParam ?? scene))
const sceneToUse = (sceneParam ?? scene).split('-').map((sceneValueSplit: string) => String(+sceneValueSplit)).join('-')
// check if cycle pass and scene are all within a valid range
const validCycle = inputIsValid('cycle', cycleToUse)
const validPass = inputIsValid('pass', passToUse)
Expand Down

0 comments on commit 0871ccd

Please sign in to comment.