FIX: failing build with prettier (#8241)
This commit is contained in:
parent
da5e9af10a
commit
9592ab57e0
|
@ -22,7 +22,9 @@ export default (viewName, path, channel) => {
|
|||
const filter =
|
||||
"topics/" + path + "/" + this.modelFor("user").get("username_lower");
|
||||
const lastTopicList = findOrResetCachedTopicList(this.session, filter);
|
||||
return lastTopicList ? lastTopicList : this.store.findFiltered("topicList", { filter });
|
||||
return lastTopicList
|
||||
? lastTopicList
|
||||
: this.store.findFiltered("topicList", { filter });
|
||||
},
|
||||
|
||||
setupController() {
|
||||
|
|
|
@ -17,10 +17,11 @@ export default createPMRoute("groups", "private-messages-groups").extend({
|
|||
|
||||
model(params) {
|
||||
const username = this.modelFor("user").get("username_lower");
|
||||
const filter =
|
||||
`topics/private-messages-group/${username}/${params.name}/archive`;
|
||||
const filter = `topics/private-messages-group/${username}/${params.name}/archive`;
|
||||
const lastTopicList = findOrResetCachedTopicList(this.session, filter);
|
||||
return lastTopicList ? lastTopicList : this.store.findFiltered("topicList", { filter });
|
||||
return lastTopicList
|
||||
? lastTopicList
|
||||
: this.store.findFiltered("topicList", { filter });
|
||||
},
|
||||
|
||||
afterModel(model) {
|
||||
|
|
|
@ -12,10 +12,11 @@ export default createPMRoute("groups", "private-messages-groups").extend({
|
|||
|
||||
model(params) {
|
||||
const username = this.modelFor("user").get("username_lower");
|
||||
const filter =
|
||||
`topics/private-messages-group/${username}/${params.name}`;
|
||||
const filter = `topics/private-messages-group/${username}/${params.name}`;
|
||||
const lastTopicList = findOrResetCachedTopicList(this.session, filter);
|
||||
return lastTopicList ? lastTopicList : this.store.findFiltered("topicList", { filter });
|
||||
return lastTopicList
|
||||
? lastTopicList
|
||||
: this.store.findFiltered("topicList", { filter });
|
||||
},
|
||||
|
||||
afterModel(model) {
|
||||
|
|
Loading…
Reference in New Issue