🐛 fix(API/index.ts): change 'public' property to 'status' and set it to "public" or "private" based on the value of publicFlow to improve clarity and consistency

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-16 09:44:21 -03:00
commit 0f7c4861f4

View file

@ -568,7 +568,7 @@ export async function saveFlowStore(
is_component: newFlow.is_component,
parent: newFlow.parent,
tags: tags,
public: publicFlow,
status: publicFlow ? "public" : "private",
});
if (response.status !== 201) {