Skip to content

Commit

Permalink
improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
priscilawebdev committed Jul 18, 2024
1 parent f25ead5 commit f3c80ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/app/views/organizationStats/usageStatsOrg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class UsageStatsOrganization<
subLabels: chartSubLabels,
skipZeroValuedSubLabels: true,
},
legendSelected: !clientDiscard ? {[SeriesTypes.CLIENT_DISCARD]: false} : undefined,
legendSelected: {[SeriesTypes.CLIENT_DISCARD]: !!clientDiscard},
onLegendSelectChanged: ({name, selected}) => {
if (name === SeriesTypes.CLIENT_DISCARD) {
handleChangeState({clientDiscard: selected[name]});
Expand Down

0 comments on commit f3c80ae

Please sign in to comment.