File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -874,12 +874,14 @@ export default class SchemaController {
874
874
return (
875
875
deletePromise // Delete Everything
876
876
. then ( ( ) => this . reloadData ( { clearCache : true } ) ) // Reload our Schema, so we have all the new values
877
- . then ( ( ) => {
878
- const promises = insertedFields . map ( fieldName => {
877
+ . then ( async ( ) => {
878
+ const results = [ ] ;
879
+ for ( let i = 0 ; i < insertedFields . length ; i += 1 ) {
880
+ const fieldName = insertedFields [ i ] ;
879
881
const type = submittedFields [ fieldName ] ;
880
- return this . enforceFieldExists ( className , fieldName , type ) ;
881
- } ) ;
882
- return Promise . all ( promises ) ;
882
+ results . push ( await this . enforceFieldExists ( className , fieldName , type ) ) ;
883
+ }
884
+ return results ;
883
885
} )
884
886
. then ( results => {
885
887
enforceFields = results . filter ( result => ! ! result ) ;
You can’t perform that action at this time.
0 commit comments