Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoGen Studio] Fix the new workflow process #1181

Merged
merged 4 commits into from
Jan 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ const WorkflowView = ({}: any) => {
React.useState<IFlowConfig | null>(null);

const defaultConfig = sampleWorkflowConfig();
const [newWorkflow, setNewWorkflow] = React.useState<IFlowConfig | null>(
defaultConfig
);
const [newWorkflow] = React.useState<IFlowConfig | null>(defaultConfig);

const [showWorkflowModal, setShowWorkflowModal] = React.useState(false);
const [showNewWorkflowModal, setShowNewWorkflowModal] = React.useState(false);
Expand Down Expand Up @@ -195,7 +193,7 @@ const WorkflowView = ({}: any) => {
handler,
}: {
workflow: IFlowConfig | null;
setWorkflow: (workflow: IFlowConfig | null) => void;
setWorkflow?: (workflow: IFlowConfig | null) => void;
showWorkflowModal: boolean;
setShowWorkflowModal: (show: boolean) => void;
handler?: (workflow: IFlowConfig) => void;
Expand All @@ -207,7 +205,7 @@ const WorkflowView = ({}: any) => {
<Modal
title={
<>
Agent Specification{" "}
Workflow Specification{" "}
<span className="text-accent font-normal">
{localWorkflow?.name}
</span>{" "}
Expand All @@ -223,7 +221,7 @@ const WorkflowView = ({}: any) => {
}}
onCancel={() => {
setShowWorkflowModal(false);
setWorkflow(null);
setWorkflow?.(null);
}}
>
{localWorkflow && (
Expand Down Expand Up @@ -251,7 +249,6 @@ const WorkflowView = ({}: any) => {

<WorkflowModal
workflow={newWorkflow}
setWorkflow={setNewWorkflow}
showWorkflowModal={showNewWorkflowModal}
setShowWorkflowModal={setShowNewWorkflowModal}
handler={(workflow: IFlowConfig) => {
Expand Down
Loading