Enable redaction for community-published workflows

This commit is contained in:
akhisud3195 2025-09-16 00:45:11 +04:00
parent 8a86b892d0
commit 1072c8836c

View file

@ -1646,9 +1646,12 @@ export function WorkflowEditor({
setCommunityPublishing(true);
try {
// Use the same redaction logic as URL sharing to mask environment variables
const redactedWorkflow = JSON.parse(buildWorkflowExportJson());
await createAssistantTemplate({
...communityData,
workflow: state.present.workflow, // Use the current workflow
workflow: redactedWorkflow, // Use the redacted workflow
});
setCommunityPublishSuccess(true);