Skip to content

Commit

Permalink
feat: #2859 makretplace dev portal navigation (#2870)
Browse files Browse the repository at this point in the history
* feat: #2859 fixed marketplace types, changed permissions for new dev fetching behaviour

* feat: logic working, needs testing

* fix: #2859 addresses a race condition
  • Loading branch information
willmcvay authored Oct 16, 2020
1 parent 7a81aec commit bbd9d8e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions packages/marketplace/src/reducers/apps/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,16 @@ export const appsListReducer = (state: AppsListState = defaultAppsListState, act
}

if (isType(action, fetchDeveloperAppsSuccess)) {
const {
data: { data: developerApps },
} = action

const { data: oldAppsList } = state

const uniqueAppsList = mergeAppsWithoutDuplicateId(developerApps || [], oldAppsList, [])
return {
...state,
data: uniqueAppsList,
isLoading: false,
developerApps: action.data.data || [],
}
Expand Down
2 changes: 1 addition & 1 deletion packages/marketplace/src/tests/badges/badge-branches.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/marketplace/src/tests/badges/badge-lines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/marketplace/src/tests/badges/badge-statements.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bbd9d8e

Please sign in to comment.