diff --git a/packages/frontend/editor-ui/src/app/components/layouts/EmptyStateLayout.vue b/packages/frontend/editor-ui/src/app/components/layouts/EmptyStateLayout.vue index 48ef338add7..f3a61e9e63a 100644 --- a/packages/frontend/editor-ui/src/app/components/layouts/EmptyStateLayout.vue +++ b/packages/frontend/editor-ui/src/app/components/layouts/EmptyStateLayout.vue @@ -8,7 +8,6 @@ import { useProjectsStore } from '@/features/collaboration/projects/projects.sto import { useSourceControlStore } from '@/features/integrations/sourceControl.ee/sourceControl.store'; import { getResourcePermissions } from '@n8n/permissions'; import { useProjectPages } from '@/features/collaboration/projects/composables/useProjectPages'; -import { useToast } from '@/app/composables/useToast'; import { useReadyToRunStore } from '@/features/workflows/readyToRun/stores/readyToRun.store'; import { useTemplatesDataQualityStore } from '@/experiments/templatesDataQuality/stores/templatesDataQuality.store'; import TemplatesDataQualityInlineSection from '@/experiments/templatesDataQuality/components/TemplatesDataQualityInlineSection.vue'; @@ -20,7 +19,6 @@ const emit = defineEmits<{ const route = useRoute(); const i18n = useI18n(); -const toast = useToast(); const usersStore = useUsersStore(); const projectsStore = useProjectsStore(); const sourceControlStore = useSourceControlStore(); @@ -79,9 +77,9 @@ const handleReadyToRunClick = async () => { route.params.folderId as string, projectId, ); - } catch (error) { + } catch { isLoadingReadyToRun.value = false; - toast.showError(error, i18n.baseText('generic.error')); + // Error already shown by store functions } }; diff --git a/packages/frontend/editor-ui/src/features/workflows/readyToRun/components/ReadyToRunButton.vue b/packages/frontend/editor-ui/src/features/workflows/readyToRun/components/ReadyToRunButton.vue index d5a68bbebba..13e64d7e563 100644 --- a/packages/frontend/editor-ui/src/features/workflows/readyToRun/components/ReadyToRunButton.vue +++ b/packages/frontend/editor-ui/src/features/workflows/readyToRun/components/ReadyToRunButton.vue @@ -8,7 +8,6 @@ import { useProjectPages } from '@/features/collaboration/projects/composables/u import { useProjectsStore } from '@/features/collaboration/projects/projects.store'; import { useSourceControlStore } from '@/features/integrations/sourceControl.ee/sourceControl.store'; import { useFoldersStore } from '@/features/core/folders/folders.store'; -import { useToast } from '@/app/composables/useToast'; import { useReadyToRunStore } from '../stores/readyToRun.store'; const props = defineProps<{ @@ -17,7 +16,6 @@ const props = defineProps<{ const route = useRoute(); const i18n = useI18n(); -const toast = useToast(); const projectPages = useProjectPages(); const projectsStore = useProjectsStore(); const sourceControlStore = useSourceControlStore(); @@ -51,8 +49,8 @@ const handleClick = async () => { route.params.folderId as string, projectId, ); - } catch (error) { - toast.showError(error, i18n.baseText('generic.error')); + } catch { + // Error already shown by store functions } };