fix dashedBackgroundStyle parsing issue

This commit is contained in:
aboveyunhai 2019-11-25 22:51:25 -05:00
parent f3d314a8e4
commit dd7156712d

View File

@ -86,9 +86,9 @@ export default class CircularProgress extends React.PureComponent {
}
const dashedBackgroundStyle = dashedBackground.gap > 0
? `${dashedBackground.width}, ${dashedBackground.gap}`
: dashedBackground;
? dashedBackground
: { width:0, gap:0 };
const strokeDasharray = Object.values(dashedBackgroundStyle)
.map(value => parseInt(value));