fix automatic refresh in metric status tab

This commit is contained in:
Christoph Kluge
2026-02-19 14:25:03 +01:00
parent 62cd21eb83
commit 7789489d08

View File

@@ -50,6 +50,7 @@
/* State Init */ /* State Init */
let pieWidth = $state(0); let pieWidth = $state(0);
let querySorting = $state({ field: "startTime", type: "col", order: "DESC" })
let tableHostFilter = $state(""); let tableHostFilter = $state("");
let tableStateFilter = $state(stateOptions[0]); let tableStateFilter = $state(stateOptions[0]);
let tableHealthFilter = $state(healthOptions[0]); let tableHealthFilter = $state(healthOptions[0]);
@@ -93,7 +94,7 @@
`, `,
variables: { variables: {
nodeFilter: { cluster: { eq: cluster }}, nodeFilter: { cluster: { eq: cluster }},
sorting: { field: "startTime", type: "col", order: "DESC" }, sorting: querySorting,
}, },
requestPolicy: "network-only" requestPolicy: "network-only"
})); }));
@@ -163,7 +164,7 @@
<Refresher <Refresher
initially={120} initially={120}
onRefresh={(interval) => { onRefresh={(interval) => {
sorting = { field: "startTime", type: "col", order: "DESC" } querySorting = { field: "startTime", type: "col", order: "DESC" };
}} }}
/> />
</Col> </Col>