diff --git a/js/sdk/src/components/HubPostCreate.js b/js/sdk/src/components/HubPostCreate.js index c8ee53cd8..2aa2b3d43 100644 --- a/js/sdk/src/components/HubPostCreate.js +++ b/js/sdk/src/components/HubPostCreate.js @@ -227,7 +227,9 @@ const HubPostCreate = ({ result = await postInitViaHub(hubPubkey, slug, uri) } if (result?.success) { - await getHubsForRelease(metadataJson.reference) + if (metadataJson.reference) { + await getHubsForRelease(metadataJson.reference) + } enqueueSnackbar(result.msg, { variant: 'info', })