260228:1427 20260228:14:00 workflow update
All checks were successful
Build and Deploy / deploy (push) Successful in 2m37s

This commit is contained in:
admin
2026-02-28 14:27:33 +07:00
parent 276d06e950
commit efd5183906
6 changed files with 73 additions and 33 deletions

View File

@@ -21,7 +21,7 @@ import Link from 'next/link';
export default function WorkflowEditPage() {
const params = useParams();
const router = useRouter();
const id = params?.id === 'new' ? null : Number(params?.id);
const id = params?.id === 'new' ? null : params?.id as string;
const [workflowData, setWorkflowData] = useState<Partial<Workflow>>({
workflowName: '',
@@ -31,7 +31,7 @@ export default function WorkflowEditPage() {
isActive: true,
});
const { data: fetchedWorkflow, isLoading: loadingWorkflow } = useWorkflowDefinition(id as number);
const { data: fetchedWorkflow, isLoading: loadingWorkflow } = useWorkflowDefinition(id as string);
const createMutation = useCreateWorkflowDefinition();
const updateMutation = useUpdateWorkflowDefinition();