Validate json and don't allow null parameter values when running workflow (#866)

This commit is contained in:
Kerem Yilmaz
2024-09-20 05:23:20 -07:00
committed by GitHub
parent e9184bc399
commit 0beb929cf3
2 changed files with 8 additions and 2 deletions

View File

@@ -1,9 +1,12 @@
import { getClient } from "@/api/AxiosClient";
import { WorkflowApiResponse, WorkflowParameterValueType } from "@/api/types";
import { useCredentialGetter } from "@/hooks/useCredentialGetter";
import { useQuery } from "@tanstack/react-query";
import { useLocation, useParams } from "react-router-dom";
import { RunWorkflowForm } from "./RunWorkflowForm";
import {
WorkflowApiResponse,
WorkflowParameterValueType,
} from "./types/workflowTypes";
function defaultValue(type: WorkflowParameterValueType) {
switch (type) {