Skip to content

Commit eba1117

Browse files
committed
Fix empty scope.nodes causing 400 Bad Request
When no nodes are selected, use wildcard ['*'] instead of empty array to match the documented behavior ("No selected Nodes means All Nodes"). Fixes netdata/netdata-cloud#1132
1 parent fe65219 commit eba1117

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/hooks/useGetChartData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const useGetChartData = async ({
6060
options: ['jsonwrap', 'flip', 'ms'],
6161
scope: {
6262
contexts: [contextId],
63-
nodes,
63+
nodes: nodes.length ? nodes : ['*'],
6464
dimensions,
6565
labels,
6666
},

0 commit comments

Comments
 (0)