Skip to content

Commit

Permalink
fix: fix crash when saving from research plan
Browse files Browse the repository at this point in the history
  • Loading branch information
Lan Le committed Aug 15, 2023
1 parent a93e56b commit aa88136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/packs/src/apps/mydb/elements/details/ViewSpectra.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@ class ViewSpectra extends React.Component {
buildOpsByLayout(et) {
if (this.props.sample && this.props.sample instanceof ResearchPlan) {
return [
{ name: 'write & save', value: this.writeOp },
{ name: 'write, save & close', value: this.writeCloseOp },
{ name: 'write & save', value: this.saveOp },
{ name: 'write, save & close', value: this.saveCloseOp },
];
}
const updatable = this.props.sample && this.props.sample.can_update;
Expand Down

0 comments on commit aa88136

Please sign in to comment.