Skip to content

Commit

Permalink
Merge pull request #258 from us3r-network/F-modelname-ttang
Browse files Browse the repository at this point in the history
feat: use modelOrSchemaName
  • Loading branch information
sin-bufan authored Sep 28, 2023
2 parents f93d00c + fe9da7f commit c2e71ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/client/scan/src/components/ListTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ export default function ListTable({
if (item.schema) {
schemaOrModel = (
<Link to={`/streams/stream/${item.schema}?network=${network}`}>
{shortPubKey(item.schema, { len: 8, split: '-' })}
{item.modelOrSchemaName ||
shortPubKey(item.schema, { len: 8, split: '-' })}
</Link>
)
} else if (item.model && (item.type === '0' || item.type === '3')) {
schemaOrModel = (
<Link to={`/streams/stream/${item.model}?network=${network}`}>
{shortPubKey(item.model, { len: 8, split: '-' })}
{item.modelOrSchemaName ||
shortPubKey(item.model, { len: 8, split: '-' })}
</Link>
)
}
Expand Down
1 change: 1 addition & 0 deletions packages/client/scan/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export type Stream = {
hash: string
schema: string
model?: string
modelOrSchemaName?: string
anchorStatus: string
commitIds: string[]
content: Json
Expand Down

0 comments on commit c2e71ab

Please sign in to comment.