Skip to content

Commit

Permalink
fix(contentful-apps): Add missing variable in check for pie chart type (
Browse files Browse the repository at this point in the history
#16836)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
mannipje and kodiakhq[bot] authored Nov 13, 2024
1 parent 5baabc6 commit 7ac5f5b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ const ChartComponentSourceDataKeyField = () => {
}))
}

const disableMoreThanOneItemOnPieChart = manualData?.categoryItems?.length > 0
const disableMoreThanOneItemOnPieChart =
typeIsPieChart && manualData?.categoryItems?.length > 0

return (
<>
Expand Down

0 comments on commit 7ac5f5b

Please sign in to comment.