Skip to content

Commit

Permalink
fix: loading empty content (#2237)
Browse files Browse the repository at this point in the history
* content may be a empty string but !"" = true so it will use
`ComponentLoader`, but we should load it as it has content
(empty content)
  • Loading branch information
oldshensheep authored Jul 29, 2024
1 parent 9c10520 commit e81d132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/files/file-preview/FilePreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const Preview = (props) => {
return cantPreview
}

if (!content) {
if (content === null) {
return <ComponentLoader />
}

Expand Down

0 comments on commit e81d132

Please sign in to comment.