fix errors

This commit is contained in:
Qiuxia Fan 2022-08-03 10:19:27 +08:00
parent b01565b2b8
commit e2fcee588b

View File

@ -146,10 +146,10 @@ async function queryEvents() {
let endpoint = state.endpoint.value, let endpoint = state.endpoint.value,
instance = state.instance.value; instance = state.instance.value;
if (dashboardStore.entity === EntityType[2].value) { if (dashboardStore.entity === EntityType[2].value) {
endpoint = selectorStore.currentPod.id; endpoint = selectorStore.currentPod && selectorStore.currentPod.id;
} }
if (dashboardStore.entity === EntityType[3].value) { if (dashboardStore.entity === EntityType[3].value) {
instance = selectorStore.currentPod.id; instance = selectorStore.currentPod && selectorStore.currentPod.id;
} }
if (!selectorStore.currentService) { if (!selectorStore.currentService) {
return; return;