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 ; }