Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
fix(reports): fetch available customers if no pre-selection is given
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabauke committed Mar 2, 2023
1 parent 2154986 commit 9449d76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/components/task-selection/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export default class TaskSelectionComponent extends Component {
this.onProjectChange(project);
} else if (customer && !this.customer) {
this.onCustomerChange(customer);
} else {
this.tracking.fetchCustomers.perform();
}
}

Expand Down
5 changes: 4 additions & 1 deletion tests/integration/components/tracking-bar/component-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ module("Integration | Component | tracking bar", function (hooks) {
setupTrackingService(this, {
activity: { comment: "asdf" },
fetchRecentTasks: { last: Promise.resolve() },
fetchCustomers: { last: Promise.resolve() },
fetchCustomers: {
perform: () => {},
last: Promise.resolve(),
},
});
});

Expand Down

0 comments on commit 9449d76

Please sign in to comment.