Rm not-null assert
This commit is contained in:
@@ -453,11 +453,13 @@ export function SubscribeButton({
|
|||||||
? l`Subscribe on ${highlightedPublisher.name}`
|
? l`Subscribe on ${highlightedPublisher.name}`
|
||||||
: l`View publication`
|
: l`View publication`
|
||||||
|
|
||||||
|
if (!view.source) return null
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<StandardSiteThemeProvider view={view}>
|
<StandardSiteThemeProvider view={view}>
|
||||||
<Link
|
<Link
|
||||||
shouldProxy
|
shouldProxy
|
||||||
to={view.source!.uri}
|
to={view.source.uri}
|
||||||
label={cta}
|
label={cta}
|
||||||
size="small"
|
size="small"
|
||||||
color="secondary_inverted"
|
color="secondary_inverted"
|
||||||
|
|||||||
Reference in New Issue
Block a user