fix(editor): Remove duplicate error toasts in ready-to-run workflow (#24335)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Mutasem Aldmour
2026-01-14 16:04:31 +00:00
committed by GitHub
co-authored by Claude Opus 4.5
parent 4aa9399c3d
commit eb27530c43
2 changed files with 4 additions and 8 deletions
@@ -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
}
};
@@ -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
}
};
</script>