Skip to content

Commit

Permalink
fix(frontend): fetch projects/tasks when customer/project intersect
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Sep 3, 2024
1 parent d15d0d7 commit 614d90c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion frontend/app/analysis/edit/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,18 @@ export default class AnalysisEditController extends Controller {

yield this.store.pushPayload("report-intersection", res);

const model = this.store.peekRecord("report-intersection", res.data.id);

if (model.customer) {
this.store.query("project", { customer: model.customer.id });
}

if (model.project) {
this.store.query("task", { project: model.project.id });
}

return {
model: this.store.peekRecord("report-intersection", res.data.id),
model,
meta: res.meta,
};
}
Expand Down

0 comments on commit 614d90c

Please sign in to comment.