mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
feat: reset the state once closing categorization aside
This commit is contained in:
@@ -19,13 +19,26 @@ function CategorizeTransactionAsideRoot({
|
||||
|
||||
// #withBanking
|
||||
selectedUncategorizedTransactionId,
|
||||
resetTransactionsToCategorizeSelected,
|
||||
enableMultipleCategorization,
|
||||
}: CategorizeTransactionAsideProps) {
|
||||
//
|
||||
//
|
||||
useEffect(
|
||||
() => () => {
|
||||
// Close the reconcile matching form.
|
||||
closeReconcileMatchingTransaction();
|
||||
|
||||
// Reset the selected transactions to categorize.
|
||||
resetTransactionsToCategorizeSelected();
|
||||
|
||||
// Disable multi matching.
|
||||
enableMultipleCategorization(false);
|
||||
},
|
||||
[closeReconcileMatchingTransaction],
|
||||
[
|
||||
closeReconcileMatchingTransaction,
|
||||
resetTransactionsToCategorizeSelected,
|
||||
enableMultipleCategorization,
|
||||
],
|
||||
);
|
||||
|
||||
const handleClose = () => {
|
||||
|
||||
Reference in New Issue
Block a user