Skip to content

Commit

Permalink
🐛 Fix application update (#1259)
Browse files Browse the repository at this point in the history
- This is a
[regression](6a0433e)
causing the app to be overwritten on update

Signed-off-by: ibolton336 <ibolton@redhat.com>
  • Loading branch information
ibolton336 authored Aug 8, 2023
1 parent 67c8881 commit 2196ea2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,13 +356,13 @@ export const ApplicationForm: React.FC<ApplicationFormProps> = ({
formValues.version,
formValues.packaging
),
review: undefined, // The review should not updated through this form
id: formValues.id,
migrationWave: application ? application.migrationWave : null,
identities: application?.identities ? application.identities : undefined,
};

if (application) {
updateApplication(payload);
updateApplication({ ...payload });
} else {
createApplication(payload);
}
Expand Down

0 comments on commit 2196ea2

Please sign in to comment.