misc: configurator: fix minor bug of IVSHMEM region name
IVSHMEM region name input value may be null after saving the scenario. Add a null check to avoid marking empty input as correct. Tracked-On: #7707 Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
This commit is contained in:
parent
ddefcccb26
commit
c32b182958
|
@ -194,7 +194,7 @@ export default {
|
|||
methods: {
|
||||
validateIvshrgName(value) {
|
||||
var regexp = new RegExp(this.IVSHMEMRegionType.properties.NAME.pattern);
|
||||
return regexp.test(value);
|
||||
return (value != null) && regexp.test(value);
|
||||
},
|
||||
validation(value) {
|
||||
return (value != null) && (value.length != 0);
|
||||
|
|
Loading…
Reference in New Issue