fix: props for table and edit legal guilds

This commit is contained in:
2026-02-01 15:39:24 +03:30
parent f51756be49
commit 977cd3f793
3 changed files with 5 additions and 5 deletions

View File

@@ -190,9 +190,9 @@ export const ManageGuilds = ({ userType }) => {
? item.productInfo.totalCarcassesWeight.toLocaleString()
: "-"
);
commonData.splice(10, 0, item?.hasInquiry ? "استعلامی" : "دستی");
commonData.splice(12, 0, item?.hasInquiry ? "استعلامی" : "دستی");
commonData.splice(
11,
13,
0,
item?.activeRegisterCode ? "انجام شده" : "انجام نشده"
);

View File

@@ -384,7 +384,7 @@ export const ProvinceLegalGuildsForm = ({ updateTable, item, userType }) => {
const IS_STEWARD = userType === "steward";
const userInitialValue = {
national_id: item?.user?.national_id || "",
national_id: item?.user?.nationalId || "",
first_name: item?.user?.firstName || "",
last_name: item?.user?.lastName || "",
province: item?.address?.province?.name || "",
@@ -397,7 +397,7 @@ export const ProvinceLegalGuildsForm = ({ updateTable, item, userType }) => {
if (IS_STEWARD) {
userInitialValue["name"] = item?.name;
} else {
userInitialValue["unit_name"] = item?.unitName;
userInitialValue["unit_name"] = item?.guildsName;
}
const dispatch = useDispatch();

View File

@@ -90,7 +90,7 @@ export const ProvinceLegalGuildsInProvince = ({ userType }) => {
`${item?.registerarFullname || ""} ${
item?.registerarMobile ? "(" + item?.registerarMobile + " )" : " "
}`,
(IS_STEWARD ? item?.licenseNumber : item?.nationalId) || "-",
item?.licenseNumber || "-",
(IS_STEWARD ? item?.name : item?.guildsName) || "-",
`${item?.user?.fullname || "-"}`,
item?.user?.mobile || "-",