Skip to content

Commit

Permalink
https://github.com/discourse-pro/df-core-private/issues/8
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed May 31, 2024
1 parent 9743389 commit 3a603c0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions assets/javascripts/initializers/df-core-private.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ export default {name: 'df-core-private', initialize() {withPluginApi('0.1', api
}
});
CategoriesRoute.reopen({
model() {
// 2024-05-31
// «Cannot read properties of undefined (reading 'category_slug_path_with_id')»:
// https://github.com/discourse-pro/df-core-private/issues/8
model(params) {
this.siteSettings.desktop_category_page_style =
this.get('model.parentCategory') ? 'categories_with_featured_topics' : 'categories_and_latest_topics'
;
return this._super();
return this._super(params);
}
});
});}};
Expand Down

0 comments on commit 3a603c0

Please sign in to comment.