fix: Reference error visiting share link for deleted team
This commit is contained in:
@@ -101,7 +101,7 @@ const renderShare = async (ctx: Context, next: Next) => {
|
|||||||
return renderApp(ctx, next, {
|
return renderApp(ctx, next, {
|
||||||
title: share?.document?.title,
|
title: share?.document?.title,
|
||||||
description: share?.document?.getSummary(),
|
description: share?.document?.getSummary(),
|
||||||
canonical: share
|
canonical: share?.team
|
||||||
? ctx.request.href.replace(ctx.request.origin, share.team.url)
|
? ctx.request.href.replace(ctx.request.origin, share.team.url)
|
||||||
: undefined,
|
: undefined,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user