Skip to content

Commit

Permalink
Update category-header-widget.js.es6
Browse files Browse the repository at this point in the history
  • Loading branch information
radek3911 authored Dec 4, 2020
1 parent 9c86b73 commit 6856e6a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions javascripts/discourse/widgets/category-header-widget.js.es6
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,11 @@ export default createWidget("category-header-widget", {
html() {
const path = window.location.pathname;
var category = this.register
.lookup("controller:navigation/category")
.get("category");
.lookup("controller:tags-show")
.get("tag");

if (!category) {
var category = this.register
.lookup("controller:navigation/category")
.get("tag");
return
}

const isException = settings.exceptions
Expand Down

0 comments on commit 6856e6a

Please sign in to comment.