Sometimes Ceramic's getStreamContent() return an empty object and it would cause the app to crash when passed to GWCanvas component.
Rewrite parseMediaContent() of src/helpers/gwParser.js so that invalid media content is filtered out before being passed to GWCanvas.
Issue
fixes #49
Checklist:
[x] My commit message follows the Conventional Commits specification
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have tested my code
[x] My changes generate no new warnings
[x] My PR is rebased off the most recent main or appropriate feature branch
[x] My PR is opened against the main or appropriate feature branch
Description
Sometimes Ceramic's
getStreamContent()
return an empty object and it would cause the app to crash when passed toGWCanvas
component. RewriteparseMediaContent()
ofsrc/helpers/gwParser.js
so that invalid media content is filtered out before being passed toGWCanvas
.Issue
fixes #49
Checklist:
main
or appropriate feature branchmain
or appropriate feature branchAlert Reviewers
@codynhat @gravenp