From 4ae9399ab51ba36655dba975d83f49cafb6ad97a Mon Sep 17 00:00:00 2001 From: Cees Voesenek Date: Wed, 24 Apr 2024 16:46:44 +0200 Subject: [PATCH] Make sure step size is always valid --- src/components/workflows/WorkflowsControl.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/workflows/WorkflowsControl.vue b/src/components/workflows/WorkflowsControl.vue index 6211a2655..62139433d 100644 --- a/src/components/workflows/WorkflowsControl.vue +++ b/src/components/workflows/WorkflowsControl.vue @@ -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 }