File tree 1 file changed +2
-2
lines changed
packages/firecms_core/src/preview
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export const PropertyPreview = React.memo(function PropertyPreview<T extends CMS
56
56
propertyConfigs : customizationController . propertyConfigs
57
57
} ) ;
58
58
59
- if ( value === undefined || property === null ) {
59
+ if ( property === null ) {
60
60
content = < EmptyValue /> ;
61
61
} else if ( property . Preview ) {
62
62
content = createElement ( property . Preview as React . ComponentType < PropertyPreviewProps > ,
@@ -70,7 +70,7 @@ export const PropertyPreview = React.memo(function PropertyPreview<T extends CMS
70
70
// entity,
71
71
customProps : property . customProps
72
72
} ) ;
73
- } else if ( value === null ) {
73
+ } else if ( value === undefined || value === null ) {
74
74
content = < EmptyValue /> ;
75
75
} else if ( property . dataType === "string" ) {
76
76
const stringProperty = property as ResolvedStringProperty ;
You can’t perform that action at this time.
0 commit comments