Skip to content

Commit

Permalink
Make sure step size is always valid
Browse files Browse the repository at this point in the history
  • Loading branch information
ceesvoesenek committed Apr 24, 2024
1 parent fc79a5d commit 4ae9399
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/workflows/WorkflowsControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ watch(data, () => {
// the form.
const xCellSize = data.value.xCellSize
const yCellSize = data.value.yCellSize
if (typeof xCellSize === 'number') {
if (typeof xCellSize === 'number' && xCellSize > 0) {
longitudeStepSize.value = data.value.xCellSize
}
if (typeof yCellSize === 'number') {
if (typeof yCellSize === 'number' && yCellSize > 0) {
latitudeStepSize.value = data.value.yCellSize
}
Expand Down

0 comments on commit 4ae9399

Please sign in to comment.