-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor useFetchTasks()'s select function
The function used by `useFetchTasks()` to filter by addon and to keep only the newest tasks per application id was confusing to read as written. This refactor simplifies the steps involved to use a typical stream processing approach. The output is functionally identical to the original implementation. Signed-off-by: Scott J Dickerson <[email protected]>
- Loading branch information
Showing
1 changed file
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters