Skip to content

Commit

Permalink
fix(xo-web/backup): fix normalizedSettings[''] is undefined when ed…
Browse files Browse the repository at this point in the history
…iting a backup job

Introduced by 8a9a67c
  • Loading branch information
MelissaFrncJrg authored and pdonias committed Sep 20, 2024
1 parent b62e803 commit 89aa7df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xo-web/src/xo-app/backup/new/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ const New = decorate([
snapshotMode: state.snapshotMode,
}).toObject()

if (normalizedSettings[''].maxExportRate <= 0) {
if (normalizedSettings['']?.maxExportRate <= 0) {
normalizedSettings[''].maxExportRate = undefined
}

Expand Down

0 comments on commit 89aa7df

Please sign in to comment.