From 1ce270d1291d1e12b365ee185df02e2b2e61ba44 Mon Sep 17 00:00:00 2001 From: Charlie Kolb Date: Fri, 13 Feb 2026 11:22:49 +0100 Subject: [PATCH] fix(editor): Strip template preview of pinData (no-changelog) (#25727) --- .../templates/views/TemplatesWorkflowView.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/frontend/editor-ui/src/features/workflows/templates/views/TemplatesWorkflowView.vue b/packages/frontend/editor-ui/src/features/workflows/templates/views/TemplatesWorkflowView.vue index 0fc31725e43..126a45b3750 100644 --- a/packages/frontend/editor-ui/src/features/workflows/templates/views/TemplatesWorkflowView.vue +++ b/packages/frontend/editor-ui/src/features/workflows/templates/views/TemplatesWorkflowView.vue @@ -13,6 +13,8 @@ import TemplatesView from './TemplatesView.vue'; import RecommendedTemplateCard from '../recommendations/components/RecommendedTemplateCard.vue'; import { N8nButton, N8nMarkdown, N8nText } from '@n8n/design-system'; +import type { IWorkflowTemplate } from '@n8n/rest-api-client'; + const externalHooks = useExternalHooks(); const templatesStore = useTemplatesStore(); const nodeTypesStore = useNodeTypesStore(); @@ -120,6 +122,17 @@ onBeforeUnmount(() => { previewObserver = null; } }); + +const strippedWorkflow = computed(() => { + if (!template.value?.workflow) return undefined; + + if (template.value.readyToDemo) return template.value.workflow; + + return { + ...template.value.workflow, + pinData: {}, + }; +});