Skip to content

Commit

Permalink
skip hubPostRelease lookup if post has no release (#1038)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejf89 authored May 9, 2023
1 parent 37f7e49 commit f54b31a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/sdk/src/components/HubPostCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
})
Expand Down

0 comments on commit f54b31a

Please sign in to comment.