Skip to content

Commit

Permalink
Fix the issue where the persistWorkflow method in the workspace is no…
Browse files Browse the repository at this point in the history
…t functioning properly (#3200)

### Purpose:
Currently, a 400 error occurs when calling `persistWorkflow`. The reason
is that the parameter sent from the frontend to the backend is
`isPublished` instead of `isPublic`.

### Change:
Change the name of the parameter sent to the backend.

### Demos:
Before:

![image](https://github.com/user-attachments/assets/157ec547-5dfc-4cd2-b805-6ae919e7ed68)

After:

![image](https://github.com/user-attachments/assets/403ebab3-2f29-4993-af01-af7309ada02c)
  • Loading branch information
GspikeHalo authored Jan 9, 2025
1 parent 630c59d commit 3144fd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class WorkflowPersistService {
name: workflow.name,
description: workflow.description,
content: JSON.stringify(workflow.content),
isPublished: workflow.isPublished,
isPublic: workflow.isPublished,
})
.pipe(
filter((updatedWorkflow: Workflow) => updatedWorkflow != null),
Expand Down

0 comments on commit 3144fd9

Please sign in to comment.