Commit 6810976a authored by wangxuelai's avatar wangxuelai

''

parent 4a0425fa
......@@ -671,7 +671,7 @@ class StaticCenter extends React.Component {
title: item.title,
start_time: item.start_time,
cover: item.cover,
content: JSON.parse(item.content),
content: item.content ? JSON.parse(item.content) : '',
},
},
});
......@@ -679,7 +679,7 @@ class StaticCenter extends React.Component {
type: 'uploadcourseware/updateState',
payload: {
visible: true,
info: (JSON.parse(item.content)) || {},
info: item.content ? (JSON.parse(item.content)) : {},
},
});
}
......@@ -722,7 +722,7 @@ class StaticCenter extends React.Component {
title: item.title,
start_time: item.start_time,
cover: item.cover,
content: JSON.parse(item.content),
content: item.content ? JSON.parse(item.content) : '',
},
},
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment