260228:1427 20260228:14:00 workflow update
All checks were successful
Build and Deploy / deploy (push) Successful in 2m37s
All checks were successful
Build and Deploy / deploy (push) Successful in 2m37s
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user