Skip to content
Snippets Groups Projects
Commit 194e15f3 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[BUGFIX] Prevent JS crash

parent 4ebf665a
No related branches found
No related tags found
No related merge requests found
......@@ -34,8 +34,10 @@ export default class CategoryFilter {
*/
constructor(_newsList) {
this._newsList = _newsList;
this._form = this._newsList.querySelector('form');
this._setupEventListeners();
if (this._newsList) {
this._form = this._newsList.querySelector('form');
this._setupEventListeners();
}
}
/**
......
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