Skip to content

Commit

Permalink
Ensure lists with no entities populate pagination section correctly
Browse files Browse the repository at this point in the history
- ids: { } => ids: { 1: [] }
- think this is a regression following the removal of partial entities
- Fixes #2682, #2684
  • Loading branch information
richard-cox authored and Irfan Habib committed Jul 19, 2018
1 parent 189c7d9 commit 3448e0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/frontend/app/store/helpers/entity-relations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ export function validateEntityRelations(config: ValidateEntityRelationsConfig):

if (!action.entity || !parentEntities || parentEntities.length === 0) {
return {
apiResponse: config.apiResponse,
started: false,
completed: Promise.resolve([])
};
Expand Down

0 comments on commit 3448e0f

Please sign in to comment.