Closed LB22 closed 3 years ago
cc @jaepass
Thanks for raising this @LB22, I'll look into this.
@robbieaverill I think we'll need to completely remove this category block.
Sounds good. If not, we need to ensure that any attributes of the extra category data we consume in this demo store are either attributes that the Chec API provides, or have null safety handling for cases like this where we've added extra properties that don't exist in the Chec API.
If I add a new category and refresh I get the error "Error: Failed prop type: The prop
href
expects astring
orobject
in<Link>
, but gotundefined
instead."I traced it by luck to
<Link href={item.link}>
in components/homepage/CategoryBanner.js.The error goes away if I remove the new category I created in the dashboard, or if I change the Link to
<Link href="/">