mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 13:37:58 +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' } } }));
|
this.setState(update(this.state, { addPrinter: { error: { $set: 'Please enter a name and printer' } } }));
|
||||||
return;
|
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' } } }));
|
this.setState(update(this.state, { addPrinter: { error: { $set: 'Please enter a valid IP adress' } } }));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user