Skip to content

Commit 3e72014

Browse files
committed
feature/sql: Minor fix and changes before 0.7.0-rc1
1 parent ff4c5aa commit 3e72014

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/Prompt/promp-archive-form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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",

src/components/Selectors/PromptSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) => (

src/components/form-grid-params.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)