Skip to content

Commit e81d132

Browse files
authored
fix: loading empty content (#2237)
* content may be a empty string but !"" = true so it will use `ComponentLoader`, but we should load it as it has content (empty content)
1 parent 9c10520 commit e81d132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/files/file-preview/FilePreview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const Preview = (props) => {
113113
return cantPreview
114114
}
115115

116-
if (!content) {
116+
if (content === null) {
117117
return <ComponentLoader />
118118
}
119119

0 commit comments

Comments
 (0)