From aa881369a5eaac43f667fcd983e90306cf61a429 Mon Sep 17 00:00:00 2001 From: Lan Le Date: Tue, 15 Aug 2023 10:18:30 +0200 Subject: [PATCH] fix: fix crash when saving from research plan --- app/packs/src/apps/mydb/elements/details/ViewSpectra.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/packs/src/apps/mydb/elements/details/ViewSpectra.js b/app/packs/src/apps/mydb/elements/details/ViewSpectra.js index ea3ba8d7ac..7d26d9063c 100644 --- a/app/packs/src/apps/mydb/elements/details/ViewSpectra.js +++ b/app/packs/src/apps/mydb/elements/details/ViewSpectra.js @@ -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;