Skip to content

Commit

Permalink
Merge pull request #519 from RedHatProductSecurity/fix/OSIDB-3777-fix…
Browse files Browse the repository at this point in the history
…-new-affect-cvss-creation

🐛 Fix cvss not created on new affects
  • Loading branch information
C-Valen authored Dec 12, 2024
2 parents 1718a6d + ed070d8 commit 9580257
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Fixed
* Fix save all button behavior for affects table (`OSIDB-3664`)
* Fix loss of focus and undesirable sorting on affects being edited (`OSIDB-3700`)
* Fix CVSS not created for new affects on save (`OSIDB-3777`)

### Changed
* Move notifications to left side (`OSIDB-3543`)
Expand Down
2 changes: 1 addition & 1 deletion src/composables/useFlawAffectsModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export function useFlawAffectsModel() {
}

function shouldUpsertAffectCvss(affect: ZodAffectType) {
return affectRhCvss3(affect)?.vector && didAffectCvssChange(affect);
return affectRhCvss3(affect)?.vector && (didAffectCvssChange(affect) || !affect.uuid);
}

async function removeAffects() {
Expand Down

0 comments on commit 9580257

Please sign in to comment.