Skip to content

Commit

Permalink
Merge pull request #2816 from 10up/fix/2815
Browse files Browse the repository at this point in the history
Uncaught TypeError on Settings Page
felipeelia authored Jun 1, 2022
2 parents 199bd5f + 5e01cd9 commit c0aa3e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/settings.js
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ const init = () => {
* @returns {boolean} Whether the current tab is for ElasticPress.io.
*/
const isEpio = () => {
return 'epio' in activeTab.dataset;
return activeTab && 'epio' in activeTab.dataset;
};

let epioHost = isEpio() ? host.value : '';

0 comments on commit c0aa3e7

Please sign in to comment.