diff --git a/app/packs/src/apps/mydb/elements/details/researchPlans/ResearchPlanDetails.js b/app/packs/src/apps/mydb/elements/details/researchPlans/ResearchPlanDetails.js index a4ce1ba224..00b8be2243 100644 --- a/app/packs/src/apps/mydb/elements/details/researchPlans/ResearchPlanDetails.js +++ b/app/packs/src/apps/mydb/elements/details/researchPlans/ResearchPlanDetails.js @@ -50,13 +50,11 @@ export default class ResearchPlanDetails extends Component { const { researchPlan } = props; this.state = { researchPlan, - update: false, visible: Immutable.List(), currentUser: (UserStore.getState() && UserStore.getState().currentUser) || {}, }; this.handleSwitchMode = this.handleSwitchMode.bind(this); this.handleResearchPlanChange = this.handleResearchPlanChange.bind(this); - this.toggleFullScreen = this.toggleFullScreen.bind(this); this.handleNameChange = this.handleNameChange.bind(this); this.handleBodyChange = this.handleBodyChange.bind(this); this.handleBodyAdd = this.handleBodyAdd.bind(this); @@ -261,13 +259,6 @@ export default class ResearchPlanDetails extends Component { this.setState({ visible }); } - toggleFullScreen() { - this.props.toggleFullScreen(); - - // toogle update prop to notify react data grid for view change - this.setState({ update: !this.state.update }); - } - dropWellplate(wellplate) { const { researchPlan } = this.state; researchPlan.changed = true; @@ -351,7 +342,7 @@ export default class ResearchPlanDetails extends Component { ); } - renderResearchPlanMain(researchPlan, update) { /* eslint-disable react/jsx-no-bind */ + renderResearchPlanMain(researchPlan) { /* eslint-disable react/jsx-no-bind */ const { name, body, changed, attachments } = researchPlan; @@ -434,7 +425,6 @@ export default class ResearchPlanDetails extends Component { onDelete={this.handleBodyDelete.bind(this)} onExport={this.handleExportField.bind(this)} onCopyToMetadata={this.handleCopyToMetadata.bind(this)} - update={update} edit={edit} copyableFields={[ { title: 'Subject', fieldName: 'subject' }, @@ -515,7 +505,7 @@ export default class ResearchPlanDetails extends Component { Full Research Plan}> -