File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ export function PromptArchiveForm(props: IProps) {
112112 } ) ;
113113 } ,
114114 onError : ( error ) => {
115- console . error ( error ) ;
115+ // console.error(error);
116116 toast ( {
117117 variant : "destructive" ,
118118 title : "Error creating prompt" ,
@@ -137,7 +137,7 @@ export function PromptArchiveForm(props: IProps) {
137137 } ) ;
138138 } ,
139139 onError : ( error ) => {
140- console . error ( error ) ;
140+ // console.error(error);
141141 toast ( {
142142 variant : "destructive" ,
143143 title : "Error updating prompt" ,
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ function PromptSelector({ form }: IProps) {
7575 { /* Global error message */ }
7676 { errors . prompts && typeof errors . prompts === "object" && (
7777 < div className = "text-red-500 dark:text-red-900" >
78- < > { errors . prompts . root ?. message } </ >
78+ { errors . prompts . root ?. message ?. toString ( ) }
7979 </ div >
8080 ) }
8181 { fields . map ( ( field , index ) => (
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const validateNumberOrArray =
3636 ( inputType : "float" | "int" ) => ( value : string | number ) => {
3737 const stringValue = typeof value === "string" ? value : value . toString ( ) ;
3838 if ( ! isCommaDelimitedList ( stringValue ) ) {
39- console . error ( "caught invalid list" , stringValue ) ;
39+ // console.error("caught invalid list", stringValue);
4040 return false ;
4141 }
4242 const values = stringValue . split ( "," ) ;
@@ -251,7 +251,7 @@ export default function FormGridParams() {
251251 } ) ;
252252
253253 toast ( {
254- variant : "info" ,
254+ // variant: "info",
255255 title : "Running experiment." ,
256256 duration : 2500 ,
257257 } ) ;
You can’t perform that action at this time.
0 commit comments