diff --git a/plugins/linear/server/api/linear.ts b/plugins/linear/server/api/linear.ts index 033c2fde88..db8469b176 100644 --- a/plugins/linear/server/api/linear.ts +++ b/plugins/linear/server/api/linear.ts @@ -106,12 +106,14 @@ router.get( { transaction } ); - transaction.afterCommit(async () => { - await UploadLinearWorkspaceLogoTask.schedule({ - integrationId: integration.id, - logoUrl: workspace.logoUrl, + if (workspace.logoUrl) { + transaction.afterCommit(async () => { + await UploadLinearWorkspaceLogoTask.schedule({ + integrationId: integration.id, + logoUrl: workspace.logoUrl, + }); }); - }); + } ctx.redirect(LinearUtils.successUrl()); }