File tree Expand file tree Collapse file tree
packages/contentstack-import/src/lib/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ const _ = require('lodash');
44const removeReferenceFields = ( module . exports = async function ( schema , flag , stackAPIClient ) {
55 for ( let i = 0 ; i < schema . length ; i ++ ) {
66 if ( schema [ i ] . data_type === 'group' ) {
7- removeReferenceFields ( schema [ i ] . schema , flag ) ;
7+ removeReferenceFields ( schema [ i ] . schema , flag ) ;
88 } else if ( schema [ i ] . data_type === 'blocks' ) {
99 for ( var block in schema [ i ] . blocks ) {
1010 removeReferenceFields ( schema [ i ] . blocks [ block ] . schema , flag ) ;
1111 }
12- } else if ( schema [ i ] . data_type === 'reference' ) {
12+ } else if ( schema [ i ] . data_type === 'reference' || schema [ i ] . reference_to ) {
1313 flag . supressed = true ;
1414 // Check if content-type exists
1515 // If exists, then no change should be required.
You can’t perform that action at this time.
0 commit comments