mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-09 19:45:17 +02:00
Enable redaction for community-published workflows
This commit is contained in:
parent
8a86b892d0
commit
1072c8836c
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue