feat: processedLines instead of area in textEditor

This commit is contained in:
Joshua Shoemaker 2023-03-28 12:15:30 -05:00
parent d69f02f2c4
commit af4e123739

View File

@ -74,8 +74,8 @@ const TextEditor = () => {
try { try {
const response = await getProcessedAreasByDocumentId(selectedDocumentId) const response = await getProcessedAreasByDocumentId(selectedDocumentId)
if (!response || response.length === 0) return if (!response || response.length === 0) return
const fullTextOfAreas = response.map(area => area.fullText + '\n').join('\n') const linesofArea = response.map(area => area.lines.map(line => line.fullText + '\n')).join('\n')
setEditorValue(fullTextOfAreas) setEditorValue(linesofArea)
} catch (err) { } catch (err) {
console.error(err) console.error(err)
setEditorValue('# No Areas on Document were textualized') setEditorValue('# No Areas on Document were textualized')