diff --git a/web-v2/src/pages/InventoryDetailPage.tsx b/web-v2/src/pages/InventoryDetailPage.tsx
index 59b8f1a..b10356e 100644
--- a/web-v2/src/pages/InventoryDetailPage.tsx
+++ b/web-v2/src/pages/InventoryDetailPage.tsx
@@ -5,6 +5,7 @@ import { getAsset } from '../lib/api';
import type { AssetDetail } from '../lib/api';
import { AssetEditorPage } from './AssetEditorPage';
import { CompanyInventoryPage } from './CompanyInventoryPage';
+import { TerritorialInventoryPage, isTerritorialInventoryAsset } from './TerritorialInventoryPage';
export function InventoryDetailPage() {
const { id } = useParams();
@@ -30,10 +31,15 @@ export function InventoryDetailPage() {
if (loading) return ;
if (!asset) return {error || 'No se pudo cargar el registro.'};
+ const advanced = params.get('advanced') === '1';
const isCompany = asset.type.code.toLowerCase() === 'empresa';
- if (isCompany && params.get('advanced') !== '1') {
+ if (isCompany && !advanced) {
return ;
}
+ if (isTerritorialInventoryAsset(asset) && !advanced) {
+ return ;
+ }
+
return ;
}