From 51b54abd2b060b07052bf886caea96286d0c3187 Mon Sep 17 00:00:00 2001 From: Chika Date: Tue, 15 Sep 2020 19:19:03 +0300 Subject: [PATCH] fix table not updated && errors --- src/client/hocs/withStore.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/hocs/withStore.js b/src/client/hocs/withStore.js index 17f312d..03f08c0 100644 --- a/src/client/hocs/withStore.js +++ b/src/client/hocs/withStore.js @@ -47,10 +47,11 @@ export const withStoreValue = Component => ({ export const withTableData = Table => props => { const { name: tableName } = props; + const ObservedTable = observer(Table); const TableWithStore = () => { const { calculationStore } = useStores(); const tableData = calculationStore.tables[tableName]; - return ; + return ; }; return TableWithStore; };