From fe9da7f68cef1c9c4116bb8092158abb25aa7a22 Mon Sep 17 00:00:00 2001 From: ttang Date: Thu, 28 Sep 2023 14:43:15 +0800 Subject: [PATCH] feat: use modelOrSchemaName --- packages/client/scan/src/components/ListTable.tsx | 6 ++++-- packages/client/scan/src/types/index.ts | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/client/scan/src/components/ListTable.tsx b/packages/client/scan/src/components/ListTable.tsx index 0e42d24f..7cc7a6ef 100644 --- a/packages/client/scan/src/components/ListTable.tsx +++ b/packages/client/scan/src/components/ListTable.tsx @@ -44,13 +44,15 @@ export default function ListTable({ if (item.schema) { schemaOrModel = ( - {shortPubKey(item.schema, { len: 8, split: '-' })} + {item.modelOrSchemaName || + shortPubKey(item.schema, { len: 8, split: '-' })} ) } else if (item.model && (item.type === '0' || item.type === '3')) { schemaOrModel = ( - {shortPubKey(item.model, { len: 8, split: '-' })} + {item.modelOrSchemaName || + shortPubKey(item.model, { len: 8, split: '-' })} ) } diff --git a/packages/client/scan/src/types/index.ts b/packages/client/scan/src/types/index.ts index 028d5d40..99fe5a26 100644 --- a/packages/client/scan/src/types/index.ts +++ b/packages/client/scan/src/types/index.ts @@ -13,6 +13,7 @@ export type Stream = { hash: string schema: string model?: string + modelOrSchemaName?: string anchorStatus: string commitIds: string[] content: Json