u
This commit is contained in:
@@ -24,7 +24,7 @@ let posterminalAutomat;
|
||||
const actions = {
|
||||
/** Load all posterminals for the selected company. */
|
||||
async load() {
|
||||
const companyId = companyAutomat.state.current?.id;
|
||||
const companyId = authAutomat.state.user?.selectedCompanyId ?? companyAutomat.state.current?.id;
|
||||
if (!companyId) return [];
|
||||
posterminalAutomat.setState({ status: 'loading', error: null });
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user