File tree Expand file tree Collapse file tree 6 files changed +1541
-859
lines changed
Expand file tree Collapse file tree 6 files changed +1541
-859
lines changed Original file line number Diff line number Diff 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' ] ( {
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments