Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Commit 0c1c9f6

Browse files
authored
Merge pull request #263 from nevermined-io/fix/get-subscription
Fix get subscription
2 parents 4840188 + 4c0299a commit 0c1c9f6

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
#### [v1.1.2](https://github.com/nevermined-io/components-catalog/compare/v1.1.1...v1.1.2)
8+
9+
> 8 March 2023
10+
11+
- Fix get contract [`#262`](https://github.com/nevermined-io/components-catalog/pull/262)
12+
- fix get nft contract [`2097033`](https://github.com/nevermined-io/components-catalog/commit/2097033fd61f6c9d6adb20e03320bc95fe9fc46f)
13+
- Adding v1.1.1 Changelog updates [`f249bf5`](https://github.com/nevermined-io/components-catalog/commit/f249bf5db860ae2b6188a8df46fd71faa68e3efc)
14+
715
#### [v1.1.1](https://github.com/nevermined-io/components-catalog/compare/v1.1.0...v1.1.1)
816

917
> 8 March 2023

catalog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nevermined-io/catalog",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"main": "./dist/index.js",
55
"types": "./dist/index.d.ts",
66
"dependencies": {

catalog/src/catalog.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,12 @@ export const NeverminedProvider = ({ children, config, verbose }: NeverminedProv
214214
publishedAssets.map(async (a) => {
215215
const subscriptionDDO = await assets.findOne(a)
216216

217-
const metadata = subscriptionDDO.findServiceByType('metadata')
218-
const isNFTSales = subscriptionDDO.findServiceByType('nft-sales')
217+
if (!subscriptionDDO) {
218+
return undefined
219+
}
220+
221+
const metadata = subscriptionDDO?.findServiceByType('metadata')
222+
const isNFTSales = subscriptionDDO?.findServiceByType('nft-sales')
219223

220224
if(!metadata || !isNFTSales || metadata.attributes.main.nftType !== NeverminedNFT721Type.nft721Subscription) {
221225
return undefined

providers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@nevermined-io/providers",
33
"private": false,
4-
"version": "1.1.2",
4+
"version": "1.1.3",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
77
"dependencies": {

0 commit comments

Comments
 (0)