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

@@ -45,9 +45,7 @@ function ReceiptActionsBar({
// Handle the active tab change. // Handle the active tab change.
const handleTabChange = (viewId) => { const handleTabChange = (viewId) => {
setReceiptsTableState({ setReceiptsTableState({ customViewId: viewId.id || null });
csutomViewId: viewId.id || null,
});
}; };
return ( return (

View File

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