Skip to content

Commit

Permalink
chore: rename the y axis unit to unit
Browse files Browse the repository at this point in the history
  • Loading branch information
vikrantgupta25 committed Sep 14, 2024
1 parent bbd8d60 commit e03a1cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/container/NewWidget/RightContainer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,11 @@ function RightContainer({
<YAxisUnitSelector
defaultValue={yAxisUnit}
onSelect={setYAxisUnit}
fieldLabel={selectedGraphType === 'Value' ? 'Unit' : 'Y Axis Unit'}
fieldLabel={
selectedGraphType === 'Value' || selectedGraphType === 'Pie'
? 'Unit'
: 'Y Axis Unit'
}
/>
)}
{allowSoftMinMax && (
Expand Down

0 comments on commit e03a1cb

Please sign in to comment.