fix table value not saving to store
This commit is contained in:
parent
84f38e81e7
commit
f624d3321d
@ -52,11 +52,10 @@ export const useTableValue = ({ tableName, rowIndex, propName }) => {
|
||||
useEffect(() => {
|
||||
calculationStore.setTableRow(
|
||||
{
|
||||
targetName: 'values',
|
||||
tableName,
|
||||
rowIndex,
|
||||
},
|
||||
{ [propName]: debouncedValue },
|
||||
{ values: { [propName]: debouncedValue } },
|
||||
);
|
||||
}, [calculationStore, debouncedValue, propName, rowIndex, tableName]);
|
||||
|
||||
|
||||
@ -29,7 +29,7 @@ const tablesActions = {
|
||||
if (statuses && Object.keys(statuses).length > 0) {
|
||||
applyParams('statuses', statuses);
|
||||
}
|
||||
if (values && Object.keys(filters).length > 0) {
|
||||
if (filters && Object.keys(filters).length > 0) {
|
||||
applyParams('filters', filters);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user