File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/contentstack-audit/src/modules Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -540,10 +540,9 @@ export default class ContentType {
540
540
} ) ;
541
541
} else if ( ! field . schema && this . moduleName === 'content-types' ) {
542
542
const gfSchema = find ( this . gfSchema , { uid : field . reference_to } ) ?. schema ;
543
-
544
543
if ( gfSchema ) {
545
544
field . schema = gfSchema as GlobalFieldSchemaTypes [ ] ;
546
-
545
+ } else {
547
546
this . missingRefs [ this . currentUid ] . push ( {
548
547
tree,
549
548
data_type,
@@ -558,8 +557,11 @@ export default class ContentType {
558
557
} else if ( ! field . schema && this . moduleName === 'global-fields' ) {
559
558
const gfSchema = find ( this . gfSchema , { uid : field . reference_to } ) ?. schema ;
560
559
if ( gfSchema ) {
560
+
561
561
field . schema = gfSchema as GlobalFieldSchemaTypes [ ] ;
562
562
563
+
564
+ } else {
563
565
this . missingRefs [ this . currentUid ] . push ( {
564
566
tree,
565
567
data_type,
@@ -572,7 +574,6 @@ export default class ContentType {
572
574
} ) ;
573
575
}
574
576
}
575
-
576
577
return refExist ? field : null ;
577
578
}
578
579
You can’t perform that action at this time.
0 commit comments