Skip to content

Commit 5f6f807

Browse files
authored
Merge pull request #551 from SUSE/fix-missing-cells-info
Fix bug where CF cells page was empty
2 parents 7c6a679 + 1a286b8 commit 5f6f807

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/frontend/packages/cloud-foundry/src/shared/components/list/list-types/cf-cells/cf-cells-data-source.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@ export class CfCellsDataSource
3232
paginationKey: action.paginationKey,
3333
isLocal: true,
3434
transformEntities: [{ type: 'filter', field: CfCellsDataSource.cellIdPath }],
35-
transformEntity: map((response) => {
36-
if (!response || response.length === 0) {
37-
return [];
38-
}
39-
return response[0].data.result;
40-
}),
35+
transformEntity: map((response) => [...(response?.[0]?.data?.result || [])]),
4136
listConfig
4237
});
4338
}

0 commit comments

Comments
 (0)