Skip to content

Commit

Permalink
feat: handle saving data set for generic element
Browse files Browse the repository at this point in the history
  • Loading branch information
Lan Le committed Apr 1, 2024
1 parent 9a3218b commit 209c8df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/packs/src/components/generic/GenericElDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import GenericAttachments from 'src/components/generic/GenericAttachments';
import { SegmentTabs } from 'src/components/generic/SegmentDetails';
import RevisionViewerBtn from 'src/components/generic/RevisionViewerBtn';
import OpenCalendarButton from 'src/components/calendar/OpenCalendarButton';
import { handleSaveDataset } from 'src/utilities/ElementUtils';

const onNaviClick = (type, id) => {
const { currentCollection, isSync } = UIStore.getState();
Expand Down Expand Up @@ -94,6 +95,8 @@ export default class GenericElDetails extends Component {
});
}
}
const { genericEl } = this.state;
handleSaveDataset(genericEl, state, this.handleSubmit, false);
}

handleElChanged(el) {
Expand Down Expand Up @@ -142,7 +145,7 @@ export default class GenericElDetails extends Component {
});
return false;
}
LoadingActions.start();
LoadingActions.start.defer();
genericEl.name = genericEl.name.trim();
// filter is_deleted analysis
const { container } = genericEl;
Expand Down

0 comments on commit 209c8df

Please sign in to comment.