u
This commit is contained in:
@@ -72,7 +72,7 @@ class ArtikelSkuPage extends Component {
|
||||
await Promise.all([
|
||||
artikelAutomat.actions.loadArticle(sku),
|
||||
whenCategoryTreeReady(),
|
||||
companyAutomat.actions.load(),
|
||||
companyAutomat.state.current ? Promise.resolve(companyAutomat.state.current) : companyAutomat.actions.load(),
|
||||
bootstrapAuthMe(),
|
||||
]);
|
||||
if (this._mounted) this.setState({ ready: true });
|
||||
|
||||
@@ -104,7 +104,6 @@ class ArtikelKategorienPage extends PureComponent {
|
||||
companyId: s.current?.id ?? null,
|
||||
}));
|
||||
this.ensureTreeLoaded();
|
||||
this.ensurePosterminalsLoaded();
|
||||
this.subscribeViewHandle();
|
||||
this.syncSortable();
|
||||
}
|
||||
|
||||
@@ -184,9 +184,7 @@ class ArtikelLagerPage extends PureComponent {
|
||||
error: state.warehousesError ? backendErrorFrom(state.warehousesError) : null,
|
||||
}));
|
||||
|
||||
if (companyAutomat.state.warehousesStatus !== 'ready') {
|
||||
void companyAutomat.actions.loadWarehouses().catch((err) => notifyError(err));
|
||||
} else {
|
||||
if (this.state.status === 'ready') {
|
||||
this._initSortable();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user