Skip to content

Commit

Permalink
Fix missing Started and Stored collection data (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielCosme authored Jun 5, 2024
1 parent cedfa4c commit 713ec4d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ui/src/store/collection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,6 @@ const actions: ActionTree<State, RootState> = {
}

return EnduroCollectionClient.collectionList(request).then((response) => {
// collectionList does not transform the objects as collectionShow does.
// Do it manually for now, I'd expect the generated client to start doing
// this for us at some point.
response.items = response.items.map((item) => api.EnduroStoredCollectionFromJSON(item));

commit(SET_SEARCH_RESULTS, response.items);
commit(SET_SEARCH_ERROR, false);
commit(SET_SEARCH_NEXT_CURSOR, response.nextCursor);
Expand Down

0 comments on commit 713ec4d

Please sign in to comment.