Skip to content

Commit

Permalink
Moved getLastUsedParameters to ContextMenu (from where the dialog is …
Browse files Browse the repository at this point in the history
…opened)
  • Loading branch information
marcus-oscarsson committed Oct 10, 2023
1 parent 899ca8f commit 5954a48
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ui/src/components/Tasks/GenericTaskForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
FieldsHeader,
StaticField,
InputField,
getLastUsedParameters,
saveToLastUsedParameters,
resetLastUsedParameters,
} from './fields';
Expand Down Expand Up @@ -361,8 +360,6 @@ export default connect((state) => {
path = `${state.login.rootPath}/${subdir}/[RUN#]`;
}

const parameters = getLastUsedParameters(type, state);

return {
path,
filename: fname,
Expand All @@ -374,7 +371,7 @@ export default connect((state) => {
uiSchema,
beamline: state.beamline,
initialValues: {
...parameters,
...state.taskForm.taskData.parameters,
type,
beam_size: state.sampleview.currentAperture,
resolution:
Expand Down

0 comments on commit 5954a48

Please sign in to comment.