Skip to content

Commit ae4d296

Browse files
committed
chore: translate row content
1 parent 88cfcb0 commit ae4d296

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/application/services/js-services/http/http_api.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,15 +1823,9 @@ export async function generateAITranslateForRow(workspaceId: string, payload: Ge
18231823
);
18241824

18251825
return payloadResponse.items
1826-
.map((item) => {
1827-
return Object.entries(item)
1828-
.map(([key, value]) => {
1829-
if (!value) return '';
1830-
return `${key}: ${value}`;
1831-
})
1832-
.join(', ');
1833-
})
1834-
.join('\n');
1826+
.map((item) => item.content)
1827+
.filter((content) => content)
1828+
.join(', ');
18351829
}
18361830

18371831
export async function createOrphanedView(workspaceId: string, payload: { document_id: string }) {

0 commit comments

Comments
 (0)