mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
BIG-88: Reset table state once the table unmount.
This commit is contained in:
@@ -10,3 +10,8 @@ export const setCustomersTableState = (queries) => {
|
||||
};
|
||||
};
|
||||
|
||||
export const resetCustomersTableState = () => {
|
||||
return {
|
||||
type: t.CUSTOMERS_TABLE_STATE_RESET,
|
||||
};
|
||||
}
|
||||
6
client/src/store/vendors/vendors.actions.js
vendored
6
client/src/store/vendors/vendors.actions.js
vendored
@@ -5,4 +5,10 @@ export const setVendorsTableState = (queries) => {
|
||||
type: t.VENDORS_TABLE_STATE_SET,
|
||||
payload: { queries },
|
||||
};
|
||||
}
|
||||
|
||||
export const resetVendorsTableState = () => {
|
||||
return {
|
||||
type: t.VENDORS_TABLE_STATE_RESET,
|
||||
}
|
||||
}
|
||||
1
client/src/store/vendors/vendors.types.js
vendored
1
client/src/store/vendors/vendors.types.js
vendored
@@ -1,4 +1,5 @@
|
||||
export default {
|
||||
VENDORS_TABLE_STATE_SET: 'VENDORS/TABLE_STATE_SET',
|
||||
VENDORS_TABLE_STATE_RESET: 'VENDORS/TABLE_STATE_RESET',
|
||||
VENDORS_SELECTED_ROWS_SET: 'VENDORS/SELECTED_ROWS_SET',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user