Skip to content

Commit

Permalink
Merge pull request #551 from SUSE/fix-missing-cells-info
Browse files Browse the repository at this point in the history
Fix bug where CF cells page was empty
  • Loading branch information
richard-cox authored Feb 1, 2022
2 parents 7c6a679 + 1a286b8 commit 5f6f807
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@ export class CfCellsDataSource
paginationKey: action.paginationKey,
isLocal: true,
transformEntities: [{ type: 'filter', field: CfCellsDataSource.cellIdPath }],
transformEntity: map((response) => {
if (!response || response.length === 0) {
return [];
}
return response[0].data.result;
}),
transformEntity: map((response) => [...(response?.[0]?.data?.result || [])]),
listConfig
});
}
Expand Down

0 comments on commit 5f6f807

Please sign in to comment.