mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
feat(warehouses transfer): fix table state change.
This commit is contained in:
@@ -34,8 +34,7 @@ function WarehouseTransferDetailActionsBar({
|
||||
}) {
|
||||
const history = useHistory();
|
||||
|
||||
const { warehouseTransferId, warehouseTransfer } =
|
||||
useWarehouseDetailDrawerContext();
|
||||
const { warehouseTransferId } = useWarehouseDetailDrawerContext();
|
||||
|
||||
// Handle edit warehosue transfer.
|
||||
const handleEditWarehosueTransfer = () => {
|
||||
|
||||
@@ -43,7 +43,9 @@ function WarehouseTransfersListProvider({
|
||||
|
||||
// Detarmines the datatable empty status.
|
||||
const isEmptyStatus =
|
||||
(isEmpty(warehousesTransfers) && !isWarehouseTransfersLoading) ||
|
||||
(isEmpty(warehousesTransfers) &&
|
||||
!tableStateChanged &&
|
||||
!isWarehouseTransfersLoading) ||
|
||||
!isWarehouseFeatureCan;
|
||||
|
||||
// Fetch create notes resource views and fields.
|
||||
|
||||
Reference in New Issue
Block a user