Skip to content

Commit 6718132

Browse files
Fix redirecting
1 parent 9b1a607 commit 6718132

File tree

6 files changed

+1541
-859
lines changed

6 files changed

+1541
-859
lines changed

components/FormsTable/Actions.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ function Actions({ record }) {
5151

5252
const save = async (id) => {
5353
if (isLoading) return;
54-
console.log('ACTIONS', forms);
5554
const row = await editing.form.validateFields();
5655
if (forms.some((elem) => elem.slug === row.slug && row.slug !== record.slug)) {
5756
notification['error']({

components/FormsTable/NewForm.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ function NewForm() {
6060
{
6161
validator: async (_, value) => {
6262
if (isLoading) return;
63-
console.log('NEW', forms);
6463
if (forms.some((elem) => elem.slug === value)) {
6564
return Promise.reject(new Error('Slug already exists'));
6665
} else {

components/FormsTable/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function FormsTable() {
1010
const { editing, dispatch } = useEditing();
1111

1212
const isEditing = (record) => record._id === editing.key;
13-
console.log('Index', forms);
13+
1414
if (isLoading) return null;
1515

1616
return (

0 commit comments

Comments
 (0)