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

Commit c337653

Browse files
committed
chore: merge branch 'fix/edit-article' into dev
2 parents 13ba7f1 + 9b33e39 commit c337653

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/containers/JobEditor/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ const View = ({
3838
mentionList,
3939
contentDomId,
4040
}) => {
41+
if (!editData.body) {
42+
return (
43+
<React.Fragment>
44+
<ArticleContentLoading />
45+
<br />
46+
<ArticleContentLoading />
47+
</React.Fragment>
48+
)
49+
}
50+
4151
if (curView === 'CREATE_VIEW' || curView === 'PREVIEW_VIEW') {
4252
return (
4353
<React.Fragment>

src/containers/PostEditor/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ const View = ({
4848
mentionList,
4949
contentDomId,
5050
}) => {
51+
if (!editData.body) {
52+
return (
53+
<React.Fragment>
54+
<ArticleContentLoading />
55+
<br />
56+
<ArticleContentLoading />
57+
</React.Fragment>
58+
)
59+
}
60+
5161
if (curView === 'CREATE_VIEW' || curView === 'PREVIEW_VIEW') {
5262
return (
5363
<React.Fragment>

0 commit comments

Comments
 (0)