Further adaptions to new urql version

This commit is contained in:
Christoph Kluge
2023-05-10 16:35:21 +02:00
parent 280d63a852
commit 374a485d69
4 changed files with 28 additions and 36 deletions

View File

@@ -27,7 +27,7 @@
let hostnameFilter = ''
let selectedMetric = ccconfig.system_view_selectedMetric
const nodesQuery = queryStore({
$: nodesQuery = queryStore({
client: getContextClient(),
query: gql`query($cluster: String!, $metrics: [String!], $from: Time!, $to: Time!) {
nodeMetrics(cluster: $cluster, metrics: $metrics, from: $from, to: $to) {
@@ -49,7 +49,7 @@
}`,
variables: {
cluster: cluster,
metrics: [],
metrics: [selectedMetric],
from: from.toISOString(),
to: to.toISOString()}
})
@@ -66,7 +66,6 @@
}
}
$: $nodesQuery.variables = { cluster, metrics: [selectedMetric], from: from.toISOString(), to: to.toISOString() }
</script>
<Row>