Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(xo-web/backup/restore): don't use UNSAFE_componentWillReceiveProps #6364

Merged
merged 1 commit into from
Aug 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

> Users must be able to say: “I had this issue, happy to know it's fixed”

- [Backup/Restore] Fix backup list not loading on page load (PR [#6364](https://github.com/vatesfr/xen-orchestra/pull/6364))

### Packages to release

> When modifying a package, add it here with its release type.
Expand All @@ -30,5 +32,6 @@
- @xen-orchestra/fs minor
- vhd-lib major
- xo-server minor
- xo-web patch

<!--packages-end-->
2 changes: 1 addition & 1 deletion packages/xo-web/src/xo-app/backup/restore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class Restore extends Component {
backupDataByVm: {},
}

UNSAFE_componentWillReceiveProps(props) {
componentWillReceiveProps(props) {
if (props.remotes !== this.props.remotes || props.jobs !== this.props.jobs) {
this._refreshBackupList(props.remotes, props.jobs)
}
Expand Down
5 changes: 5 additions & 0 deletions scripts/babel-eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ module.exports = {
},
},
],
settings: {
react: {
version: 'detect',
},
},
}