Skip to content

Commit

Permalink
fix: some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Jan 29, 2024
1 parent 5d67e27 commit 52b3521
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/components/sectionList/listView/ManageListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type FormValues = {
}
const validate = (values: FormValues) => {
const errors: Record<string, string> = {}
console.log({ values })

if (values.columns.length < 1) {
errors.columns = i18n.t('At least one column must be selected')
}
Expand Down Expand Up @@ -91,7 +91,6 @@ export const ManageListView = ({
return (
<>
<Form
validateOnBlur
onSubmit={handleSave}
initialValues={initialValues}
validate={validate}
Expand Down
1 change: 0 additions & 1 deletion src/components/sectionList/listView/useModelListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,5 @@ export const useMutateModelListViews = () => {
[saveView]
)

console.log({ saveColumns, saveView })
return { mutation, saveColumns, saveView }
}

0 comments on commit 52b3521

Please sign in to comment.