использование data заменено на prevData

This commit is contained in:
goodmice 2021-11-17 15:32:48 +05:00
parent 0de213c3dc
commit 8dfc6f0832

View File

@ -61,7 +61,7 @@ export default function Measure({idWell}){
useEffect(() => {
setData(prevData => {
data[2].additionalButtons = (group, idx) => (isEditing) => isEditing ? null : (
prevData[2].additionalButtons = (group, idx) => (isEditing) => isEditing ? null : (
<Button
key={'table'}
className={'flex-1'}