Skip to content

Commit

Permalink
Merge branch 'main' into task/WP-68--datafiles-unit-test-update
Browse files Browse the repository at this point in the history
  • Loading branch information
jalowe13 authored Dec 2, 2024
2 parents 256901a + d6d9f37 commit 2181fe8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions client/src/components/Applications/AppForm/AppForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ const HandleDependentFieldChanges = ({ app, formStateUpdateHandler }) => {
const { values, setValues } = useFormikContext();
React.useEffect(() => {
if (previousValues) {
let valueUpdated = false;
let updatedValues = { ...values };

// Set the current allocation
Expand All @@ -171,24 +170,23 @@ const HandleDependentFieldChanges = ({ app, formStateUpdateHandler }) => {
updatedValues,
formStateUpdateHandler
);
valueUpdated = true;
}
if (previousValues.execSystemId !== values.execSystemId) {
updatedValues = execSystemChangeHandler(
app,
values,
formStateUpdateHandler
);
valueUpdated = true;
}

if (
previousValues.execSystemLogicalQueue !== values.execSystemLogicalQueue
) {
updatedValues = updateValuesForQueue(app, values);
valueUpdated = true;
}
if (valueUpdated) setValues(updatedValues);
if (JSON.stringify(updatedValues) !== JSON.stringify(values)) {
setValues(updatedValues);
}
}
setPreviousValues(values);
}, [app, values, setValues, formStateUpdateHandler]);
Expand Down
1 change: 1 addition & 0 deletions client/src/components/_common/Form/FormField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ const FormField = ({

<InputGroup>
<Button
size="middle"
type="secondary"
onClick={() => setOpenTapisFileModal(true)}
>
Expand Down

0 comments on commit 2181fe8

Please sign in to comment.