Fix exhausted memo hook in gantt chart
This commit is contained in:
@@ -50,7 +50,7 @@ const GanttChart = ({
|
|||||||
return items.reduce((max, item) => {
|
return items.reduce((max, item) => {
|
||||||
return item.row > max ? item.row : max
|
return item.row > max ? item.row : max
|
||||||
}, 1)
|
}, 1)
|
||||||
}, [])
|
}, [items])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box sx={{ width: (weeksToRender + 1) * 280 }}>
|
<Box sx={{ width: (weeksToRender + 1) * 280 }}>
|
||||||
|
|||||||
Reference in New Issue
Block a user