Fix the build.

This commit is contained in:
Guo Xiang Tan 2018-06-22 13:42:43 +08:00
parent cb622ead43
commit 6597cc4cd0

View File

@ -108,8 +108,6 @@ export default RestModel.extend({
const result = {};
if (summary) {
result.filter = "summary";
} else {
result.filter = "none";
}
const userFilters = this.get("userFilters");
@ -191,8 +189,13 @@ export default RestModel.extend({
toggleSummary() {
this.get("userFilters").clear();
this.toggleProperty("summary");
const opts = {};
return this.refresh().then(() => {
if (!this.get("summary")) {
opts.filter = "none";
}
return this.refresh(opts).then(() => {
if (this.get("summary")) {
this.jumpToSecondVisible();
}