fix(f6.1): make active operator selection build-safe

This commit is contained in:
2026-09-09 17:35:42 -03:00
parent bec92f0c6d
commit d9cdb48a26
+1 -1
View File
@@ -178,7 +178,7 @@ export function AssetEditorPage() {
setOperationalCompanies(loadedCompanies);
setOperatorCompanyId((current) => loadedCompanies.some((company) => company.id === current)
? current
: loadedCompanies.length === 1 ? loadedCompanies[0].id : '');
: loadedCompanies.length === 1 ? (loadedCompanies[0]?.id ?? '') : '');
}).catch((requestError) => {
setOperationalCompanies([]);
setOperatorCompanyId('');