Fix: select len check

This commit is contained in:
unitwk 2023-11-17 13:32:17 +08:00
parent a09a5e4310
commit adfe2b494b

View File

@ -17,7 +17,7 @@ const formRef = ref<FormInstance>();
const openInstanceSelectDialog = async () => {
try {
const selectedInstances = await useSelectInstances();
if (selectedInstances) {
if (selectedInstances && selectedInstances.length > 0) {
formData.value.instanceId = selectedInstances[0].instanceUuid;
formData.value.daemonId = selectedInstances[0].daemonId;
}