diff --git a/cypress/e2e/page/publish-page.cy.ts b/cypress/e2e/page/publish-page.cy.ts index 8072caf4..f7175da4 100644 --- a/cypress/e2e/page/publish-page.cy.ts +++ b/cypress/e2e/page/publish-page.cy.ts @@ -704,9 +704,11 @@ describe('Publish Page Test', () => { ShareSelectors.sharePopover().should('not.exist'); ShareSelectors.publishManageModal().should('be.visible'); - // Verify panel exists and is visible separately to avoid null subject issues - ShareSelectors.publishManagePanel().should('exist').should('be.visible'); - ShareSelectors.publishManagePanel().contains('Namespace'); + // Verify panel exists inside modal to avoid null subject issues + ShareSelectors.publishManageModal().within(() => { + ShareSelectors.publishManagePanel().should('be.visible'); + cy.contains('Namespace').should('be.visible'); + }); cy.get('body').type('{esc}'); ShareSelectors.publishManageModal().should('not.exist'); diff --git a/src/application/services/js-services/http/http_api.ts b/src/application/services/js-services/http/http_api.ts index 3b581018..ee828d52 100644 --- a/src/application/services/js-services/http/http_api.ts +++ b/src/application/services/js-services/http/http_api.ts @@ -1823,15 +1823,9 @@ export async function generateAITranslateForRow(workspaceId: string, payload: Ge ); return payloadResponse.items - .map((item) => { - return Object.entries(item) - .map(([key, value]) => { - if (!value) return ''; - return `${key}: ${value}`; - }) - .join(', '); - }) - .join('\n'); + .map((item) => item.content) + .filter((content) => content) + .join(', '); } export async function createOrphanedView(workspaceId: string, payload: { document_id: string }) {