fix: items issues.

This commit is contained in:
a.bouhuolia
2021-02-09 10:23:52 +02:00
parent 01aaa9de25
commit 083bf36c6b
18 changed files with 316 additions and 318 deletions

View File

@@ -32,7 +32,7 @@ function ItemsActionsBar({
itemsSelectedRows,
// #withItemActions
addItemsTableQueries,
setItemsTableState,
// #withAlertActions
openAlert,
@@ -40,6 +40,7 @@ function ItemsActionsBar({
// Items list context.
const { itemsViews } = useItemsListContext();
// React intl.
const { formatMessage } = useIntl();
// History context.
@@ -52,9 +53,7 @@ function ItemsActionsBar({
// Handle tab changing.
const handleTabChange = (viewId) => {
addItemsTableQueries({
customViewId: viewId.id || null,
});
setItemsTableState({ customViewId: viewId.id || null });
};
// Handle cancel/confirm items bulk.
@@ -115,8 +114,7 @@ function ItemsActionsBar({
</NavbarGroup>
</DashboardActionsBar>
);
};
}
export default compose(
withItems(({ itemsSelectedRows }) => ({ itemsSelectedRows })),