fix receipts view.

This commit is contained in:
elforjani3
2021-02-21 12:09:53 +02:00
parent 8eba9254b3
commit d9a38fc143
2 changed files with 4 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ function ReceiptViewTabs({
setReceiptsTableState,
// #withReceipts
receiptTableState
receiptTableState,
}) {
// Receipts list context.
const { receiptsViews } = useReceiptsListContext();
@@ -27,9 +27,9 @@ function ReceiptViewTabs({
}));
// Handles the active tab chaning.
const handleTabsChange = (customView) => {
const handleTabsChange = (viewId) => {
setReceiptsTableState({
customViewId: customView.id || null,
customViewId: viewId || null,
});
};