Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Aug 26, 2020
1 parent f397903 commit 92482a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export async function getPageViewTrends({
categoryBuckets.forEach(
({ key, doc_count: docCount }: { key: string; doc_count: number }) => {
if (key === 'Other') {
res[key + `(${breakdownItem.name})`] = docCount;
res[key + `(${breakdownItem?.name})`] = docCount;
} else {
res[key] = docCount;
}
Expand Down

0 comments on commit 92482a5

Please sign in to comment.