Skip to content

Commit

Permalink
fix - Transient settings not taken into effect
Browse files Browse the repository at this point in the history
Signed-off-by: Kishore Kumaar Natarajan <[email protected]>
  • Loading branch information
Kishore Kumaar Natarajan committed Jan 16, 2025
1 parent f1b1f09 commit 671832a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/pages/TopNQueries/TopNQueries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const TopNQueries = ({
try {
const resp = await core.http.get('/api/settings');
const { latency, cpu, memory } =
resp?.response?.persistent?.search?.insights?.top_queries || {};
resp?.response?.persistent?.search?.insights?.top_queries || resp?.response?.transient?.search?.insights?.top_queries || {};
if (latency !== undefined && latency.enabled === 'true') {
const [time, timeUnits] = latency.window_size
? latency.window_size.match(/\D+|\d+/g)
Expand Down

0 comments on commit 671832a

Please sign in to comment.