Skip to content

Commit

Permalink
Protect: Update use fixers query error prop handling (#39498)
Browse files Browse the repository at this point in the history
* Update FixerStatus type to account for potential error props

* changelog

* Handle error responses

* Only handle top level errors in useFixersQuery, threat level errors are handled in the completion block

* Add clarifying comment

* Improve fixer types

* Fix prop handling

* Update useFixers hook for compatibility with type updates

* Remove optional chaining where applicable, update logic to rely on TS types

* Update types

* Fix type error

---------

Co-authored-by: Nate Weller <[email protected]>

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11149548910

Upstream-Ref: Automattic/jetpack@fdcd55e
  • Loading branch information
dkmyta authored and matticbot committed Oct 2, 2024
1 parent a253fd4 commit ca27ba8
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 32 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This is an alpha version! The changes listed here are not final.
### Changed
- Added context to i18n messages "Low", "High", and "Critical".
- Adds fixer status to the initial state
- Adds handling for FixerStatus error props
- Firewall: added help text for IP list formatting rules
- Fixes blockedRequests destructuring fallback
- Fixes lastChecked conversions
Expand Down
2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('jetpack-connection', 'jetpack-script-data', 'moment', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '1270c19d92c4f345a7b9');
<?php return array('dependencies' => array('jetpack-connection', 'jetpack-script-data', 'moment', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'b3989ef082f12eab5eeb');
62 changes: 31 additions & 31 deletions build/index.js

Large diffs are not rendered by default.

0 comments on commit ca27ba8

Please sign in to comment.