diff --git a/src/components/Prompt/promp-archive-form.tsx b/src/components/Prompt/promp-archive-form.tsx index b579db1..2d1478f 100644 --- a/src/components/Prompt/promp-archive-form.tsx +++ b/src/components/Prompt/promp-archive-form.tsx @@ -112,7 +112,7 @@ export function PromptArchiveForm(props: IProps) { }); }, onError: (error) => { - console.error(error); + // console.error(error); toast({ variant: "destructive", title: "Error creating prompt", @@ -137,7 +137,7 @@ export function PromptArchiveForm(props: IProps) { }); }, onError: (error) => { - console.error(error); + // console.error(error); toast({ variant: "destructive", title: "Error updating prompt", diff --git a/src/components/Selectors/PromptSelector.tsx b/src/components/Selectors/PromptSelector.tsx index 5144c25..89dd8d3 100644 --- a/src/components/Selectors/PromptSelector.tsx +++ b/src/components/Selectors/PromptSelector.tsx @@ -75,7 +75,7 @@ function PromptSelector({ form }: IProps) { {/* Global error message */} {errors.prompts && typeof errors.prompts === "object" && (
- <>{errors.prompts.root?.message} + {errors.prompts.root?.message?.toString()}
)} {fields.map((field, index) => ( diff --git a/src/components/form-grid-params.tsx b/src/components/form-grid-params.tsx index e44ef3a..9af55b9 100644 --- a/src/components/form-grid-params.tsx +++ b/src/components/form-grid-params.tsx @@ -36,7 +36,7 @@ const validateNumberOrArray = (inputType: "float" | "int") => (value: string | number) => { const stringValue = typeof value === "string" ? value : value.toString(); if (!isCommaDelimitedList(stringValue)) { - console.error("caught invalid list", stringValue); + // console.error("caught invalid list", stringValue); return false; } const values = stringValue.split(","); @@ -251,7 +251,7 @@ export default function FormGridParams() { }); toast({ - variant: "info", + // variant: "info", title: "Running experiment.", duration: 2500, });