u
This commit is contained in:
@@ -86,7 +86,6 @@ export default class ArticleStockAdjustDialog extends PureComponent {
|
||||
warehouseId: prev.warehouseId || (warehouses.length > 0 ? warehouses[0].id : ''),
|
||||
}));
|
||||
}, ['warehouses']);
|
||||
void companyAutomat.actions.loadWarehouses().catch(() => {});
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
@@ -95,7 +94,6 @@ export default class ArticleStockAdjustDialog extends PureComponent {
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
if (this.props.open && !prevProps.open) {
|
||||
void companyAutomat.actions.loadWarehouses().catch(() => {});
|
||||
const initialWhId = this.resolveInitialWarehouseId(this.props);
|
||||
const isTrackStock =
|
||||
this.props.article?.track_stock !== false && this.props.article?.track_stock !== 0;
|
||||
|
||||
Reference in New Issue
Block a user