Skip to content

Commit

Permalink
support bootloader tags in asset names
Browse files Browse the repository at this point in the history
  • Loading branch information
NickJ202 committed Feb 20, 2025
1 parent 2cde4d3 commit c1918fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@irys/sdk": "^0.1.0-a1",
"@othent/kms": "^1.0.12",
"@permaweb/aoconnect": "0.0.51",
"@permaweb/libs": "^0.0.23",
"@permaweb/libs": "^0.0.26",
"@permaweb/stampjs": "0.6.1",
"@permaweb/ucm": "^0.0.6",
"@stripe/react-stripe-js": "^2.4.0",
Expand Down
6 changes: 5 additions & 1 deletion src/components/organisms/AssetsTable/AssetsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,11 @@ export default function AssetsTable(props: { useIdAction: boolean; useActions: b
return records.map((element: GQLNodeResponseType) => {
const data: any = {};

const titleTag = getTagValue(element.node.tags, TAGS.keys.ans110.title);
const titleTag =
getTagValue(element.node.tags, 'Bootloader-Name') ||
getTagValue(element.node.tags, TAGS.keys.ans110.title) ||
getTagValue(element.node.tags, TAGS.keys.name);

const title = titleTag !== STORAGE.none ? titleTag : formatAddress(element.node.id, false);
const displayTitle = title ? title : language.titleNotFound;

Expand Down

0 comments on commit c1918fa

Please sign in to comment.