mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-25 06:51:49 +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: {
|
methods: {
|
||||||
validation(value) {
|
validation(value) {
|
||||||
return value.length != 0;
|
return (value != null) && (value.length != 0);
|
||||||
},
|
},
|
||||||
addSharedVM(vms, index) {
|
addSharedVM(vms, index) {
|
||||||
// add new item after current item
|
// add new item after current item
|
||||||
|
@ -153,7 +153,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
validation(value) {
|
validation(value) {
|
||||||
return value.length != 0;
|
return (value != null) && (value.length != 0);
|
||||||
},
|
},
|
||||||
removeVUARTConnection(index) {
|
removeVUARTConnection(index) {
|
||||||
this.defaultVal.splice(index, 1);
|
this.defaultVal.splice(index, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user