From 8b1741e20b1d91f4d71f0e212202af3baf9550d4 Mon Sep 17 00:00:00 2001 From: Chika Date: Tue, 6 Oct 2020 13:26:16 +0300 Subject: [PATCH] setTableRow in useTableValue --- src/client/hooks/Calculation/useValue.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/client/hooks/Calculation/useValue.js b/src/client/hooks/Calculation/useValue.js index 09ef854..a15d414 100644 --- a/src/client/hooks/Calculation/useValue.js +++ b/src/client/hooks/Calculation/useValue.js @@ -51,16 +51,14 @@ export const useTableValue = ({ tableName, rowIndex, propName }) => { useEffect(() => { if (debouncedValue !== undefined) - calculationStore.setTableRows( + calculationStore.setTableRow( tableName, rowIndex, - )([ - { - [propName]: { - value: debouncedValue, - }, + )({ + [propName]: { + value: debouncedValue, }, - ]); + }); }, [debouncedValue]); const cellCallBack =