mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 05:19:05 +01:00
fix: ad dmissing resampleConfig handling to scope select
This commit is contained in:
parent
322e161064
commit
ed991de11a
@ -110,8 +110,9 @@
|
||||
const selectedMetrics = [metricName]
|
||||
|
||||
$: if (selectedScope || pendingResolution) {
|
||||
if (!selectedResolution) {
|
||||
// Skips reactive data load on init
|
||||
|
||||
if (resampleConfig && !selectedResolution) {
|
||||
// Skips reactive data load on init || Only if resampling is enabled
|
||||
selectedResolution = Number(pendingResolution)
|
||||
|
||||
} else {
|
||||
@ -119,14 +120,14 @@
|
||||
selectedScopes = [...scopes, "socket", "core", "accelerator"]
|
||||
}
|
||||
|
||||
if (pendingResolution) {
|
||||
if (resampleConfig && pendingResolution) {
|
||||
selectedResolution = Number(pendingResolution)
|
||||
}
|
||||
|
||||
metricData = queryStore({
|
||||
client: client,
|
||||
query: subQuery,
|
||||
variables: { dbid, selectedMetrics, selectedScopes, selectedResolution },
|
||||
variables: { dbid, selectedMetrics, selectedScopes, selectedResolution: (resampleConfig ? selectedResolution : 0) },
|
||||
// Never user network-only: causes reactive load-loop!
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user