u
This commit is contained in:
@@ -43,7 +43,11 @@ export default class CompanySettingsPanel extends Component {
|
||||
this.syncFormFromCompany(state.current);
|
||||
}
|
||||
});
|
||||
void this.loadCompany();
|
||||
if (companyAutomat.state.current) {
|
||||
this.syncFormFromCompany(companyAutomat.state.current);
|
||||
} else {
|
||||
void this.loadCompany();
|
||||
}
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
|
||||
@@ -78,7 +78,9 @@ export default class PosTerminalSettingsPanel extends Component {
|
||||
if (categoryAutomat.state.treeStatus === 'idle') {
|
||||
void categoryAutomat.actions.loadTree();
|
||||
}
|
||||
void this.loadTerminals();
|
||||
if (companyAutomat.state.terminalsStatus !== 'succeeded') {
|
||||
void this.loadTerminals();
|
||||
}
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
|
||||
Reference in New Issue
Block a user