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

Commit 479bd88

Browse files
committed
chore: merge branch 'fix/edit-article' into dev
2 parents e7bee13 + 0fe3e10 commit 479bd88

File tree

2 files changed

+8
-20
lines changed

2 files changed

+8
-20
lines changed

src/containers/JobEditor/index.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,6 @@ 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-
5141
if (curView === 'CREATE_VIEW' || curView === 'PREVIEW_VIEW') {
5242
return (
5343
<React.Fragment>
@@ -87,6 +77,10 @@ const JobEditorContainer = ({ jobEditor, attachment }) => {
8777
contentDomId,
8878
} = jobEditor
8979

80+
log('editData in views: ', editData)
81+
82+
if (!editData.body) return <ArticleContentLoading />
83+
9084
return (
9185
<Wrapper>
9286
<Header isEdit={isEdit} curView={curView} referUsers={referUsersData} />

src/containers/PostEditor/index.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,6 @@ 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-
6151
if (curView === 'CREATE_VIEW' || curView === 'PREVIEW_VIEW') {
6252
return (
6353
<React.Fragment>
@@ -98,6 +88,10 @@ const PostEditorContainer = ({ postEditor, attachment }) => {
9888
showRadarNote,
9989
} = postEditor
10090

91+
log('editData in views: ', editData)
92+
93+
if (!editData.body) return <ArticleContentLoading />
94+
10195
return (
10296
<Wrapper>
10397
<Modal

0 commit comments

Comments
 (0)