Merge pull request #208 in DNS/adguard-dns from fix/729 to master

* commit 'd24f208f98c08155282eb3061fd28e2e149e296b':
  - client: fixed values for settings validation
This commit is contained in:
Ildar Kamalov 2019-05-06 09:35:42 +03:00
commit 2cb2b3585f
1 changed files with 11 additions and 3 deletions

View File

@ -63,11 +63,19 @@ const renderInterfaces = (interfaces => (
class Settings extends Component {
componentDidMount() {
const { web, dns } = this.props.config;
const {
webIp, webPort, dnsIp, dnsPort,
} = this.props;
this.props.validateForm({
web,
dns,
web: {
ip: webIp,
port: webPort,
},
dns: {
ip: dnsIp,
port: dnsPort,
},
});
}