dev_SaaS
cxt 6 years ago
commit 9aa9b2f6a5

@ -234,7 +234,7 @@ class EcCourseSupportSetting extends Component {
} }
render() { render() {
let { editableMode, schooldata } = this.state; let { editableMode, schooldata, is_manager } = this.state;
if (!schooldata) schooldata = {} if (!schooldata) schooldata = {}
const course_targets = this.state.course_targets; const course_targets = this.state.course_targets;
@ -290,7 +290,7 @@ class EcCourseSupportSetting extends Component {
</div> </div>
</div> </div>
{ course_targets&&course_targets.length>=0 ? (editableMode ? { course_targets&&course_targets.length>=0 ? (editableMode && is_manager ?
<EditableCourseSupportSetting <EditableCourseSupportSetting
setEditableMode={this.setEditableMode} setEditableMode={this.setEditableMode}
{...this.props} {...this.props}

Loading…
Cancel
Save