feat(warehouses transfer): fix table state change.

This commit is contained in:
elforjani13
2022-03-08 16:33:51 +02:00
parent 2d34baa7a5
commit 6638accae6
2 changed files with 4 additions and 3 deletions

View File

@@ -34,8 +34,7 @@ function WarehouseTransferDetailActionsBar({
}) { }) {
const history = useHistory(); const history = useHistory();
const { warehouseTransferId, warehouseTransfer } = const { warehouseTransferId } = useWarehouseDetailDrawerContext();
useWarehouseDetailDrawerContext();
// Handle edit warehosue transfer. // Handle edit warehosue transfer.
const handleEditWarehosueTransfer = () => { const handleEditWarehosueTransfer = () => {

View File

@@ -43,7 +43,9 @@ function WarehouseTransfersListProvider({
// Detarmines the datatable empty status. // Detarmines the datatable empty status.
const isEmptyStatus = const isEmptyStatus =
(isEmpty(warehousesTransfers) && !isWarehouseTransfersLoading) || (isEmpty(warehousesTransfers) &&
!tableStateChanged &&
!isWarehouseTransfersLoading) ||
!isWarehouseFeatureCan; !isWarehouseFeatureCan;
// Fetch create notes resource views and fields. // Fetch create notes resource views and fields.