Skip to content

Commit

Permalink
feat: handle save dataset for well plate
Browse files Browse the repository at this point in the history
  • Loading branch information
Lan Le committed Apr 1, 2024
1 parent 82afb8b commit 299ee83
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import WellplateDetailsContainers from
'src/apps/mydb/elements/details/wellplates/analysesTab/WellplateDetailsContainers';
import WellplateDetailsAttachments from
'src/apps/mydb/elements/details/wellplates/attachmentsTab/WellplateDetailsAttachments';
import { handleSaveDataset } from 'src/utilities/ElementUtils';
import PrintCodeButton from 'src/components/common/PrintCodeButton';
import Attachment from 'src/models/Attachment';
import Utils from 'src/utilities/Functions';
Expand Down Expand Up @@ -93,7 +94,7 @@ export default class WellplateDetails extends Component {

handleSubmit() {
const { wellplate } = this.state;
LoadingActions.start();
LoadingActions.start.defer();
if (wellplate.isNew) {
ElementActions.createWellplate(wellplate);
} else {
Expand Down Expand Up @@ -234,6 +235,8 @@ export default class WellplateDetails extends Component {
activeTab: state.wellplate.activeTab
});
}
const { wellplate } = this.state;
handleSaveDataset(wellplate, state, this.handleSubmit);
}

wellplateHeader(wellplate) {
Expand Down

0 comments on commit 299ee83

Please sign in to comment.