Skip to content

Commit 1fb0afe

Browse files
authored
Merge pull request #3931 from Parsely/fix/e2e-test-failure
2 parents 66c2072 + 16138b8 commit 1fb0afe

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => 'ba768e74f926105e9b0d');
1+
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '11003228505bb09066c6');

build/blocks/recommendations/edit.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '3f8ff50ef974609570c3');
1+
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '075ef105cb061944f60c');

build/blocks/recommendations/view.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/blocks/recommendations/components/parsely-recommendations.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ export function ParselyRecommendations( {
3737
function getErrorMessage() {
3838
let message = `${ __( 'Error:', 'wp-parsely' ) } ${ JSON.stringify( error ) }`;
3939
const httpError = message.includes( '"errors":{"http_request_failed"' ) ||
40-
( typeof error === 'object' && error?.code === 'fetch_error' );
40+
( typeof error === 'object' && error?.code === 'fetch_error' ) ||
41+
( typeof error === 'object' && error?.code === 'offline_error' );
4142

4243
if ( httpError ) {
4344
message = __( 'The Parse.ly Recommendations API is not accessible. You may be offline.', 'wp-parsely' );

0 commit comments

Comments
 (0)