mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-30 19:35:36 +08:00
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:
co-authored by
Claude Opus 4.5
parent
4aa9399c3d
commit
eb27530c43
@@ -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
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
+2
-4
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user