File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -132,12 +132,6 @@ export default class ImportExport extends AdminForthPlugin {
132132 }
133133
134134 const primaryKeyColumn = this . resourceConfig . columns . find ( col => col . primaryKey ) ;
135- if ( ! primaryKeyColumn ) {
136- return {
137- ok : false ,
138- errors : [ 'Resource has no primary key column' ]
139- } ;
140- }
141135
142136 const columnValues : any [ ] = Object . values ( data ) ;
143137 for ( let i = 0 ; i < columnValues [ 0 ] . length ; i ++ ) {
@@ -199,13 +193,6 @@ export default class ImportExport extends AdminForthPlugin {
199193 }
200194
201195 const primaryKeyColumn = this . resourceConfig . columns . find ( col => col . primaryKey ) ;
202- if ( ! primaryKeyColumn ) {
203- return {
204- ok : false ,
205- errors : [ 'Resource has no primary key column' ]
206- } ;
207- }
208-
209196 const columnValues : any [ ] = Object . values ( data ) ;
210197 for ( let i = 0 ; i < columnValues [ 0 ] . length ; i ++ ) {
211198 const row = { } ;
@@ -247,13 +234,6 @@ export default class ImportExport extends AdminForthPlugin {
247234
248235 const primaryKeyColumn = this . resourceConfig . columns . find ( col => col . primaryKey ) ;
249236
250- if ( ! primaryKeyColumn ) {
251- return {
252- ok : false ,
253- error : { message : 'Resource has no primary key column' } ,
254- } ;
255- }
256-
257237 const rows = [ ] ;
258238 const columns = Object . keys ( data ) ;
259239 const columnValues = Object . values ( data ) ;
You can’t perform that action at this time.
0 commit comments