From c32b182958ba6ee348ac379a4d3762f023d5c83d Mon Sep 17 00:00:00 2001 From: Yifan Liu Date: Wed, 8 Jun 2022 09:38:12 +0800 Subject: [PATCH] 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 --- .../src/pages/Config/ConfigForm/CustomWidget/IVSHMEM_REGION.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/IVSHMEM_REGION.vue b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/IVSHMEM_REGION.vue index d7a9e2953..16a0b7248 100644 --- a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/IVSHMEM_REGION.vue +++ b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/IVSHMEM_REGION.vue @@ -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);