This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-20
lines changed Expand file tree Collapse file tree 2 files changed +8
-20
lines changed Original file line number Diff line number Diff 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 } />
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments