Skip to content

Commit

Permalink
Fixed double config function
Browse files Browse the repository at this point in the history
Signed-off-by: Emily Guo <[email protected]>
  • Loading branch information
LilyCaroline17 committed Sep 5, 2024
1 parent 37e7352 commit 4386c51
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions public/pages/TopNQueries/TopNQueries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,30 +223,6 @@ const TopNQueries = ({ core }: { core: CoreStart }) => {
[core]
);

const retrieveConfigInfo = useCallback(
async (
get: boolean,
enabled: boolean = false,
metric: string = '',
newTopN: string = '',
newWindowSize: string = '',
newTimeUnit: string = ''
) => {
try {
setMetricSettings(metric, {
isEnabled: enabled,
currTopN: newTopN,
currWindowSize: newWindowSize,
currTimeUnit: newTimeUnit,
});
} catch (error) {
// eslint-disable-next-line no-console
console.error('Failed to set settings:', error);
}
},
[]
);

const onTimeChange = ({ start, end }: { start: string; end: string }) => {
const usedRange = recentlyUsedRanges.filter(
(range) => !(range.start === start && range.end === end)
Expand Down

0 comments on commit 4386c51

Please sign in to comment.