mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 15:20:34 +00:00
feat(warehouses transfer): fix table state change.
This commit is contained in:
@@ -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 = () => {
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user