mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-23 22:18:17 +00:00
misc: configurator: Fix vUART and IVSHMEM select box missing problem
When user adds a vUART or IVSHMEM region and select VMs in selection list, deleting the selected VM could break the selection box. This patch adds a state check against null and undefined value. Tracked-On: #7624 Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
This commit is contained in:
parent
2c9f76c262
commit
648e5d904a
@ -155,7 +155,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
validation(value) {
|
||||
return value.length != 0;
|
||||
return (value != null) && (value.length != 0);
|
||||
},
|
||||
addSharedVM(vms, index) {
|
||||
// add new item after current item
|
||||
|
@ -153,7 +153,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
validation(value) {
|
||||
return value.length != 0;
|
||||
return (value != null) && (value.length != 0);
|
||||
},
|
||||
removeVUARTConnection(index) {
|
||||
this.defaultVal.splice(index, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user