Merge pull request #316 from AndyLeezard/fix_missing_unique_key_prop

Fix missing unique key prop
This commit is contained in:
Abhinandan Kushwaha 2023-07-01 20:16:19 +05:30 committed by GitHub
commit 1d45bc3d65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -410,6 +410,7 @@ export const PieChartMain = (props: propTypes) => {
/>
)}
<SvgText
key={index + 'c'}
fill={item.textColor || textColor || colors[(index + 2) % 9]}
fontSize={item.textSize || textSize}
fontFamily={item.font || props.font}