Skip to content

Commit 3c898d4

Browse files
committed
Fix : Orderby issues in the card
1 parent 2fdd3fa commit 3c898d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/@adobe/gatsby-aio-theme/components/GetCredential/Card/CardClientDetails.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const CardClientDetails = ({
3737
const splitedOrderBy = clientDetails?.orderBy?.split(',') || [];
3838
const orderedComponents = splitedOrderBy.length > 0
3939
? splitedOrderBy.map(component => componentsMap[component])
40-
: Object.values(componentsMap);
40+
: Object.values(componentsMap)?.map(key => componentsMap[key]);;
4141

4242
return (
4343
<div

src/@adobe/gatsby-aio-theme/components/GetCredential/Return/ReturnCredentialDetails.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ const ReturnCredentialDetails = ({
3737

3838
const splitedOrderBy = clientDetails?.orderBy?.split(',') || [];
3939
const orderedComponents = splitedOrderBy.length > 0
40-
? splitedOrderBy.map(key => componentsMap[key])
41-
: Object.values(componentsMap);
40+
? splitedOrderBy?.map(key => componentsMap[key])
41+
: Object.values(componentsMap)?.map(key => componentsMap[key]);
4242

4343
return (
4444
<div

0 commit comments

Comments
 (0)