Skip to content

Commit

Permalink
stop fetching comparison data when it is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Apr 19, 2021
1 parent c0f9831 commit cedc8de
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ export function ServiceOverviewDependenciesTable({ serviceName }: Props) {
start,
end,
comparisonType,
comparisonEnabled,
});

const { data = INITIAL_STATE, status } = useFetcher(
(callApmApi) => {
if (!start || !end || !comparisonStart || !comparisonEnd) {
if (!start || !end) {
return;
}
return callApmApi({
Expand Down

0 comments on commit cedc8de

Please sign in to comment.