mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-25 15:07:57 +01:00
allow for empty ip in add doodle printer
This commit is contained in:
parent
a08223f243
commit
78764383e1
@ -267,7 +267,7 @@ class Settings extends React.Component {
|
||||
this.setState(update(this.state, { addPrinter: { error: { $set: 'Please enter a name and printer' } } }));
|
||||
return;
|
||||
}
|
||||
if (printer === 'doodle3d_printer' && !validateIp(ip)) {
|
||||
if (printer === 'doodle3d_printer' && !validateIp(ip) && ip !== '') {
|
||||
this.setState(update(this.state, { addPrinter: { error: { $set: 'Please enter a valid IP adress' } } }));
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user