mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 05:37:55 +01:00
allow adding doodle3d printer without ip
This commit is contained in:
parent
c835ea12b2
commit
2b4941eefb
@ -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) && ip !== '') {
|
if (printer === 'doodle3d_printer' && ip !== '' && !validateIp(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