Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 2894c15

Browse files
committed
fix: add loading when edito body is null
1 parent 13ba7f1 commit 2894c15

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/containers/PostEditor/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ const View = ({
4848
mentionList,
4949
contentDomId,
5050
}) => {
51+
if (!editData.body) {
52+
return <div>loading...</div>
53+
}
54+
5155
if (curView === 'CREATE_VIEW' || curView === 'PREVIEW_VIEW') {
5256
return (
5357
<React.Fragment>

0 commit comments

Comments
 (0)