From fa6d4bd06a11d2e751ce66183ee6e2b497a66f88 Mon Sep 17 00:00:00 2001 From: enlineawork Date: Fri, 11 Sep 2026 22:11:55 -0300 Subject: [PATCH] refactor(web): route canonical inventory to simple detail --- web-v2/src/pages/InventoryDetailPage.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web-v2/src/pages/InventoryDetailPage.tsx b/web-v2/src/pages/InventoryDetailPage.tsx index fdd288e..0783e18 100644 --- a/web-v2/src/pages/InventoryDetailPage.tsx +++ b/web-v2/src/pages/InventoryDetailPage.tsx @@ -7,6 +7,7 @@ import { getAsset } from '../lib/api'; import type { AssetDetail } from '../lib/api'; import { AssetEditorPage } from './AssetEditorPage'; import { CompanyInventoryPage } from './CompanyInventoryPage'; +import { SimpleInventoryDetailPage, isSimpleInventoryAsset } from './SimpleInventoryDetailPage'; import { TerritorialInventoryPage, isTerritorialInventoryAsset } from './TerritorialInventoryPage'; export function InventoryDetailPage() { @@ -43,6 +44,10 @@ export function InventoryDetailPage() { return ; } + if (isSimpleInventoryAsset(asset) && !advanced) { + return ; + } + if (isTerritorialInventoryAsset(asset) && !advanced) { return ; }