mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
Fix linting errors
This commit is contained in:
parent
e14f3c802b
commit
d3792c0149
1 changed files with 2 additions and 3 deletions
|
@ -12,11 +12,10 @@ export default Discourse.Route.extend({
|
||||||
|
|
||||||
model(params) {
|
model(params) {
|
||||||
var tag = this.store.createRecord("tag", { id: Handlebars.Utils.escapeExpression(params.tag_id) }),
|
var tag = this.store.createRecord("tag", { id: Handlebars.Utils.escapeExpression(params.tag_id) }),
|
||||||
secondaryTag = null,
|
|
||||||
f = '';
|
f = '';
|
||||||
|
|
||||||
if (params.secondary_tag_id) {
|
if (params.secondary_tag_id) {
|
||||||
this.set("secondaryTag", this.store.createRecord("tag", { id: Handlebars.Utils.escapeExpression(params.secondary_tag_id) }))
|
this.set("secondaryTag", this.store.createRecord("tag", { id: Handlebars.Utils.escapeExpression(params.secondary_tag_id) }));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (params.category) {
|
if (params.category) {
|
||||||
|
@ -51,7 +50,7 @@ export default Discourse.Route.extend({
|
||||||
const parentCategorySlug = this.get('parentCategorySlug');
|
const parentCategorySlug = this.get('parentCategorySlug');
|
||||||
const filter = this.get('navMode');
|
const filter = this.get('navMode');
|
||||||
const tag_id = (tag ? tag.id : 'none');
|
const tag_id = (tag ? tag.id : 'none');
|
||||||
const secondary_tag_id = this.get('secondaryTag.id')
|
const secondary_tag_id = this.get('secondaryTag.id');
|
||||||
|
|
||||||
if (categorySlug) {
|
if (categorySlug) {
|
||||||
var category = Discourse.Category.findBySlug(categorySlug, parentCategorySlug);
|
var category = Discourse.Category.findBySlug(categorySlug, parentCategorySlug);
|
||||||
|
|
Loading…
Reference in a new issue