This commit is contained in:
seb
2026-10-28 00:41:31 +01:00
parent 23e4a0951c
commit 0453680c59
14 changed files with 47 additions and 83 deletions

View File

@@ -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 });

View File

@@ -104,7 +104,6 @@ class ArtikelKategorienPage extends PureComponent {
companyId: s.current?.id ?? null,
}));
this.ensureTreeLoaded();
this.ensurePosterminalsLoaded();
this.subscribeViewHandle();
this.syncSortable();
}

View File

@@ -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();
}
}