fix
This commit is contained in:
@@ -384,11 +384,18 @@
|
||||
reprocessSampleLimit: 25
|
||||
});
|
||||
const r = res.result;
|
||||
const mappedWith = Number(r.mapped_with_category ?? 0);
|
||||
const mappedWithout = Number(r.mapped_without_category ?? 0);
|
||||
const mappedTotal = mappedWith + mappedWithout;
|
||||
success = i18n.t("flash.admin.fixA1Success", {
|
||||
name: targetName,
|
||||
prompts: String(r.prompts ?? r.category_prompts_updated ?? 0),
|
||||
hashes: String(r.hashes ?? r.weak_hashes_cleared ?? 0),
|
||||
categories: String(r.categories ?? r.categories_backfilled ?? 0)
|
||||
categories: String(r.categories ?? r.categories_backfilled ?? 0),
|
||||
mapped_backfilled: String(r.mapped_backfilled ?? r.mapped_categories_backfilled ?? 0),
|
||||
mapped_with: String(mappedWith),
|
||||
mapped_total: String(mappedTotal),
|
||||
taxonomy: String(r.taxonomy_categories ?? 0)
|
||||
});
|
||||
fixOpen = false;
|
||||
fixCompany = null;
|
||||
@@ -410,17 +417,23 @@
|
||||
me?.staff_home_company_id?.trim() ||
|
||||
me?.staff_home_company?.id?.trim() ||
|
||||
undefined;
|
||||
if (!destId && me?.company?.id && me.company.id === cloneCompany.id) {
|
||||
error = i18n.t("flash.admin.cloneDestMissing");
|
||||
return;
|
||||
}
|
||||
const res = await cloneAdminCompanyCatalog(cloneCompany.id, {
|
||||
destCompanyId: destId
|
||||
});
|
||||
const products = Number(res.counts?.raw_products ?? 0);
|
||||
const categories = Number(res.counts?.categories ?? 0);
|
||||
const mappedWith = Number(res.counts?.mapped_with_category ?? 0);
|
||||
const activeDest = (res.active_company_id || res.dest_company_id || "").trim();
|
||||
success = i18n.t("flash.admin.catalogCloned", {
|
||||
source: cloneCompany.name,
|
||||
dest: cloneDestLabel,
|
||||
products: String(products),
|
||||
categories: String(categories)
|
||||
categories: String(categories),
|
||||
mapped_with: String(mappedWith)
|
||||
});
|
||||
cloneOpen = false;
|
||||
cloneCompany = null;
|
||||
|
||||
Reference in New Issue
Block a user