This commit is contained in:
seb
2026-09-22 08:45:14 +02:00
parent 51d01a502b
commit 8aae27bb87
3 changed files with 32 additions and 7 deletions

View File

@@ -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 {