fix: selector (#309)

This commit is contained in:
Fine0830 2023-08-01 15:41:16 +08:00 committed by GitHub
parent 344f2a6608
commit 08db5a0440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -340,7 +340,7 @@ limitations under the License. -->
selectorStore.setCurrentPod(null); selectorStore.setCurrentPod(null);
states.currentPod = ""; states.currentPod = "";
states.currentProcess = ""; states.currentProcess = "";
const e = dashboardStore.entity === EntityType[7].value ? EntityType[8].value : dashboardStore.entity; const e = dashboardStore.entity.split("Relation")[0];
fetchPods(e, selectorStore.currentService.id, true); fetchPods(e, selectorStore.currentService.id, true);
} else { } else {
selectorStore.setCurrentService(null); selectorStore.setCurrentService(null);