From 53d68868c69a23518a575c295fde0f832beb983f Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Fri, 23 Aug 2024 17:19:06 +0530 Subject: [PATCH] chore: Hide linear linked issues error toast messages (#10020) We are fetching linked Linear issues when opening a conversation if Linear integration is enabled. There may be some cases where the API call fails. We don't need to show an error message every time a user opens the conversation, as it's not critical. However, when someone clicks on the Linear icon, we can inform them that the integration is disabled. This PR will fix the issue. --- .../components/widgets/conversation/linear/index.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/linear/index.vue b/app/javascript/dashboard/components/widgets/conversation/linear/index.vue index 6d2c789c2..08f180c93 100644 --- a/app/javascript/dashboard/components/widgets/conversation/linear/index.vue +++ b/app/javascript/dashboard/components/widgets/conversation/linear/index.vue @@ -48,11 +48,7 @@ const loadLinkedIssue = async () => { const issues = response.data; linkedIssue.value = issues && issues.length ? issues[0] : null; } catch (error) { - const errorMessage = parseLinearAPIErrorResponse( - error, - t('INTEGRATION_SETTINGS.LINEAR.LOADING_ERROR') - ); - useAlert(errorMessage); + // We don't want to show an error message here, as it's not critical. When someone clicks on the Linear icon, we can inform them that the integration is disabled. } };