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

Commit

Permalink
fix(task-selection): await fetching of customers
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabauke committed Feb 13, 2023
1 parent 696a7b2 commit 4c4d35e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/components/task-selection/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ export default class TaskSelectionComponent extends Component {
yield Promise.resolve();

/* istanbul ignore if*/
if (!this.tracking.customers || !this.tracking.recentTasks) {
if (
!this.tracking.customers?.length ||
!this.tracking.recentTasks?.length
) {
yield this.tracking.fetchRecentTasks.last;
yield this.tracking.fetchCustomers.last;
}
Expand Down

0 comments on commit 4c4d35e

Please sign in to comment.