u
This commit is contained in:
@@ -16,7 +16,7 @@ import sseAutomat from '../../../automats/sseAutomat';
|
||||
import shipmentAutomat from '../../../automats/shipmentAutomat';
|
||||
import orderAutomat from '../../../automats/orderAutomat';
|
||||
import entityAutomat from '../../../automats/entityAutomat';
|
||||
import brandAutomat from '../../../automats/brandAutomat';
|
||||
import companyAutomat from '../../../automats/companyAutomat';
|
||||
import { shipment as shipmentApi, order as orderApi } from '../../../api';
|
||||
import { ShipmentDetailDialog } from '../../manifest';
|
||||
import SkeleHashImage from '../../settings/SkeleHashImage';
|
||||
@@ -709,8 +709,8 @@ class ArticleHistoryTab extends PureComponent {
|
||||
if (entityAutomat.state.status === 'idle') {
|
||||
void entityAutomat.actions.load().catch(() => {});
|
||||
}
|
||||
if (brandAutomat.state.status === 'idle') {
|
||||
void brandAutomat.actions.load().catch(() => {});
|
||||
if (companyAutomat.state.brandsStatus === 'idle') {
|
||||
void companyAutomat.actions.loadBrands().catch(() => {});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -868,7 +868,7 @@ class ArticleHistoryTab extends PureComponent {
|
||||
|
||||
handleOpenBrand(brandName) {
|
||||
if (!brandName) return;
|
||||
const match = (brandAutomat.state.brands || []).find(
|
||||
const match = (companyAutomat.state.brands || []).find(
|
||||
(b) => b && (b.name?.toLowerCase() === brandName.toLowerCase() || String(b.id) === String(brandName)),
|
||||
);
|
||||
const brandParam = match?.id != null ? String(match.id) : brandName;
|
||||
|
||||
Reference in New Issue
Block a user