Skip to content

Commit

Permalink
feature/sql: Minor fix and changes before 0.7.0-rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
dezoito committed Nov 24, 2024
1 parent ff4c5aa commit 3e72014
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/Prompt/promp-archive-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function PromptArchiveForm(props: IProps) {
});
},
onError: (error) => {
console.error(error);
// console.error(error);
toast({
variant: "destructive",
title: "Error creating prompt",
Expand All @@ -137,7 +137,7 @@ export function PromptArchiveForm(props: IProps) {
});
},
onError: (error) => {
console.error(error);
// console.error(error);
toast({
variant: "destructive",
title: "Error updating prompt",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Selectors/PromptSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function PromptSelector({ form }: IProps) {
{/* Global error message */}
{errors.prompts && typeof errors.prompts === "object" && (
<div className="text-red-500 dark:text-red-900">
<>{errors.prompts.root?.message}</>
{errors.prompts.root?.message?.toString()}
</div>
)}
{fields.map((field, index) => (
Expand Down
4 changes: 2 additions & 2 deletions src/components/form-grid-params.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(",");
Expand Down Expand Up @@ -251,7 +251,7 @@ export default function FormGridParams() {
});

toast({
variant: "info",
// variant: "info",
title: "Running experiment.",
duration: 2500,
});
Expand Down

0 comments on commit 3e72014

Please sign in to comment.