Skip to content

Commit

Permalink
v4.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed Jun 4, 2024
1 parent 4f65c17 commit 128d6b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@netdata/netdata-ui",
"version": "4.5.6",
"version": "4.5.7",
"description": "netdata UI kit",
"main": "dist/index.js",
"module": "dist/es6/index.js",
Expand Down
5 changes: 3 additions & 2 deletions src/components/progressBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const ProgressBar = forwardRef(
width={containerWidth}
{...rest}
>
{value.map(({ color, width }, index) =>
{value.map(({ color, width }, index, arr) =>
width === "0%" ? null : (
<Box
background={color}
Expand All @@ -39,8 +39,9 @@ const ProgressBar = forwardRef(
height="100%"
key={`${width}-${index}`}
position="relative"
round="2px"
round={!index ? "2px 0 0 2px" : arr.length - 1 === index ? "0 2px 2px 0" : "0"}
width={width}
zIndex={index}
/>
)
)}
Expand Down

0 comments on commit 128d6b3

Please sign in to comment.