diff --git a/cypress.config.js b/cypress.config.js index bb0aaa50ba..1d6577b499 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -11,6 +11,7 @@ module.exports = defineConfig({ setupNodeEvents(on, config) { return require('./cypress/plugins/index.js')(on, config) }, + retries: {'runMode': 2}, baseUrl: 'http://localhost:63001', }, }) diff --git a/plugins/arDominionB5Plugin/js/searchBox.js b/plugins/arDominionB5Plugin/js/searchBox.js index efd47edd5d..1e935784ce 100644 --- a/plugins/arDominionB5Plugin/js/searchBox.js +++ b/plugins/arDominionB5Plugin/js/searchBox.js @@ -32,7 +32,7 @@ ); }, searchPost: (response, $element) => { - if (response.length && $element.val().length >= 3) { + if (response?.length && $element?.val().length >= 3) { $results.html(response); dropdown.show(); } else {