Fix working hours over the schedule events rendering (#4113)
# What this PR does
Fixes working hours rendering
## Which issue(s) this PR closes
## Checklist
- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [ ] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
show up in the autogenerated release notes.
This commit is contained in:
parent
4854c835a2
commit
95063250ff
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ export const WorkingHours: FC<WorkingHoursProps> = (props) => {
|
|||
key={index}
|
||||
x={`${duration > 0 ? (start * 100) / duration : 0}%`} // x/0 is NaN
|
||||
y={0}
|
||||
width={`${duration > 0 ? (diff * 100) / duration : 0} %`} // x/0 is NaN
|
||||
width={`${duration > 0 ? (diff * 100) / duration : 0}%`} // x/0 is NaN
|
||||
height="100%"
|
||||
fill={light ? 'url(#stripes_light)' : 'url(#stripes)'}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue