Commit dbcb34c
committed
Fix avoid undefined services field in getServices response
When the backend has no traces, the getServices endpoint returned
a nil services field, which is serialized as null in JSON.
This caused the UI to fail validation, since it expects an array.
This change ensures the services field is always returned as an
empty array.
Fixes #7921.
Signed-off-by: Sujal Shah <sujalshah28092004@gmail.com>1 parent 435a23d commit dbcb34c
File tree
1 file changed
+3
-0
lines changed- cmd/jaeger/internal/extension/jaegerquery/internal/apiv3
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
275 | 278 | | |
276 | 279 | | |
277 | 280 | | |
| |||
0 commit comments