diff --git a/openmetadata-ui/src/main/resources/ui/cypress/common/CustomizeLandingPageUtils.ts b/openmetadata-ui/src/main/resources/ui/cypress/common/CustomizeLandingPageUtils.ts index 9bb78f671082..c7c270e9140c 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/common/CustomizeLandingPageUtils.ts +++ b/openmetadata-ui/src/main/resources/ui/cypress/common/CustomizeLandingPageUtils.ts @@ -55,14 +55,18 @@ export const navigateToCustomizeLandingPage = ({ `/api/v1/docStore/name/persona.${personaName}.Page.LandingPage`, 'getCustomPageData' ); - interceptURL('GET', `/api/v1/users/*?fields=follows%2Cowns`, 'getMyData'); + interceptURL( + 'GET', + '/api/v1/search/query?q=*%20AND%20followers:**', + 'getFollowersData' + ); cy.get( `[data-testid="persona-details-card-${personaName}"] [data-testid="customize-page-button"]` ).click(); verifyResponseStatusCode('@getCustomPageData', customPageDataResponse); - verifyResponseStatusCode('@getMyData', 200); + verifyResponseStatusCode('@getFollowersData', 200); }; export const saveLayout = () => { diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/EntityVersionUtils.tsx b/openmetadata-ui/src/main/resources/ui/src/utils/EntityVersionUtils.tsx index 8606238f99f9..e67551d66224 100644 --- a/openmetadata-ui/src/main/resources/ui/src/utils/EntityVersionUtils.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/utils/EntityVersionUtils.tsx @@ -176,8 +176,8 @@ export const getTextDiff = ( } if ( - newText.includes(imagePlaceholder) || - oldText.includes(imagePlaceholder) + newText?.includes(imagePlaceholder) || + oldText?.includes(imagePlaceholder) ) { return newText; }