fix: watch now button not displayed if link is undefined
Signed-off-by: Federico Morreale <frc.morreale@gmail.com>
This commit is contained in:
@@ -175,12 +175,16 @@ const Demos = () => {
|
||||
<BannerSectionGrid>
|
||||
<ContentBlock
|
||||
title={<h1>{demoItem.title}</h1>}
|
||||
actionButtons={[
|
||||
{
|
||||
link: demoItem.actionItemLink,
|
||||
label: 'WATCH NOW',
|
||||
},
|
||||
]}
|
||||
actionButtons={
|
||||
demoItem.actionItemLink
|
||||
? [
|
||||
{
|
||||
link: demoItem.actionItemLink,
|
||||
label: 'WATCH NOW',
|
||||
},
|
||||
]
|
||||
: []
|
||||
}
|
||||
>
|
||||
{demoItem.content}
|
||||
</ContentBlock>
|
||||
|
||||
Reference in New Issue
Block a user