From f0f6bf0956fbca3596cb85d5c656a4ffa2c234fc Mon Sep 17 00:00:00 2001 From: Moritz Kirstein Date: Thu, 7 Mar 2024 17:01:38 +0100 Subject: [PATCH] fix: catalogue list view crash --- src/@types/AssetExtended.d.ts | 4 ++-- src/components/@shared/AssetList/index.tsx | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/@types/AssetExtended.d.ts b/src/@types/AssetExtended.d.ts index 71d63e265..abb730c45 100644 --- a/src/@types/AssetExtended.d.ts +++ b/src/@types/AssetExtended.d.ts @@ -1,4 +1,4 @@ -import { Asset } from '@oceanprotocol/lib' +import { Asset, Metadata } from '@oceanprotocol/lib' // declaring into global scope to be able to use this as // ambiant types despite the above imports @@ -6,7 +6,7 @@ declare global { interface AssetExtended extends Asset { accessDetails?: AccessDetails views?: number - metadata: MetadataExtended + metadata: Metadata services: ServiceExtended[] } } diff --git a/src/components/@shared/AssetList/index.tsx b/src/components/@shared/AssetList/index.tsx index 8b44387f5..736bc21e2 100644 --- a/src/components/@shared/AssetList/index.tsx +++ b/src/components/@shared/AssetList/index.tsx @@ -35,8 +35,10 @@ const columns: TableOceanColumn[] = [ return ( ) },