some changes
This commit is contained in:
@@ -20,6 +20,7 @@ import { CheckCleanceCode } from "../../../../components/check-clearance-code/Ch
|
||||
import { SlaughterFreeBarsAlivesOperations } from "../slaughter-free-bars-alives-operations/SlaughterFreeBarsAlivesOperations";
|
||||
import { AppContext } from "../../../../contexts/AppContext";
|
||||
import { checkPathStartsWith } from "../../../../utils/checkPathStartsWith";
|
||||
import { fetchSlaughterBroadcastAndProducts } from "../../services/handle-fetch-slaughter-products";
|
||||
|
||||
export const SlaughterInventoryFreeBuyBarsAlives = ({
|
||||
title,
|
||||
@@ -87,6 +88,13 @@ export const SlaughterInventoryFreeBuyBarsAlives = ({
|
||||
const updateTable = () => {
|
||||
fetchApiData(page !== 0 ? page : 1);
|
||||
fetchDashboardData();
|
||||
dispatch(
|
||||
fetchSlaughterBroadcastAndProducts({
|
||||
role_key: checkPathStartsWith("slaughter")
|
||||
? selectedSubUser?.key || ""
|
||||
: "",
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user