Skip to content

Commit e9815ab

Browse files
committed
Fixing NAN on error
1 parent 8656f67 commit e9815ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/operation.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ function checkFeedRateRange(axis) {
348348
},
349349
error: (v, settings) => {
350350
let { min, max } = Object.assign(SETTINGS_INITIALSTATE.machineFeedRange, settings.machineFeedRange)[axis];
351+
if (isNaN(min) || isNan(max))
352+
return 'Check settings/machine first!';
351353
return 'Must be in range [' + min + ' , ' + max + ']'
352354
}
353355
}

0 commit comments

Comments
 (0)