Skip to content
Snippets Groups Projects
Commit 51a9c549 authored by Martin Wortschack's avatar Martin Wortschack Committed by Phil Hughes
Browse files

Resolve "Admin Settings: Cannot read property 'addEventListener' of null"

parent 466a7751
No related branches found
No related tags found
No related merge requests found
import initUserInternalRegexPlaceholder from '../../application_settings/account_and_limits';
document.addEventListener('DOMContentLoaded', initUserInternalRegexPlaceholder());
import initAdmin from './admin';
import initUserInternalRegexPlaceholder from './application_settings/account_and_limits';
 
document.addEventListener('DOMContentLoaded', () => {
initAdmin();
initUserInternalRegexPlaceholder();
});
document.addEventListener('DOMContentLoaded', initAdmin());
---
title: Load initUserInternalRegexPlaceholder only when required
merge_request: 24522
author:
type: fixed
Loading
Loading
@@ -187,6 +187,7 @@ if (process.env.BABEL_ENV === 'coverage') {
'./terminal/terminal_bundle.js',
'./users/users_bundle.js',
'./issue_show/index.js',
'./pages/admin/application_settings/show/index.js',
];
 
describe('Uncovered files', function() {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment