From d9cdb48a265a7c2e192b347a0f9b7e2b7dd63e61 Mon Sep 17 00:00:00 2001 From: enlineawork Date: Wed, 9 Sep 2026 17:35:42 -0300 Subject: [PATCH] fix(f6.1): make active operator selection build-safe --- web-v2/src/pages/AssetEditorPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-v2/src/pages/AssetEditorPage.tsx b/web-v2/src/pages/AssetEditorPage.tsx index 4efab33..e3acf00 100644 --- a/web-v2/src/pages/AssetEditorPage.tsx +++ b/web-v2/src/pages/AssetEditorPage.tsx @@ -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('');