Skip to content

Commit c59ebfb

Browse files
committed
fix: wrong return in getNonFungibleItemsFromIds
1 parent a67b102 commit c59ebfb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/GatewayProcessor/GatewayProcessor.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ export class GatewayProcessor {
521521
this.getNonFungibleData(resource_address, batch, at_ledger_state),
522522
);
523523
return items_data.map((item) => {
524-
let description: string = "";
524+
let description: string | undefined;
525525
let image_url: string | undefined;
526526
let non_fungible_data = new Map<string, string>();
527527
let name: string | undefined;
@@ -557,7 +557,8 @@ export class GatewayProcessor {
557557
id: item.non_fungible_id,
558558
image_url: image_url,
559559
name: name,
560-
non_fungible_data: non_fungible_data,
560+
non_fungible_data:
561+
non_fungible_data.size > 0 ? non_fungible_data : undefined,
561562
};
562563
});
563564
}),

0 commit comments

Comments
 (0)