[WIFI-11761] Fixed configuration subnet form rules

Signed-off-by: Charles <charles.bourque96@gmail.com>
This commit is contained in:
Charles
2022-11-28 12:26:57 +00:00
parent ceb9e2ef1d
commit 976bae410a
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "wlan-cloud-owprov-ui",
"version": "2.8.0(21)",
"version": "2.8.0(22)",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "wlan-cloud-owprov-ui",
"version": "2.8.0(21)",
"version": "2.8.0(22)",
"license": "ISC",
"dependencies": {
"@chakra-ui/icons": "^2.0.11",

View File

@@ -1,6 +1,6 @@
{
"name": "wlan-cloud-owprov-ui",
"version": "2.8.0(21)",
"version": "2.8.0(22)",
"description": "",
"main": "index.tsx",
"scripts": {

View File

@@ -512,7 +512,7 @@ export const INTERFACE_IPV4_SCHEMA = (t, useDefault = false) => {
subnet: string().when('addressing', {
is: 'dynamic',
then: string().nullable(),
otherwise: string().default(''),
otherwise: string().test('test-ipv4-subnet', t('form.invalid_ipv4'), testIpv4).default(''),
}),
gateway: string().when('addressing', {
is: 'dynamic',