feat: processedLines instead of area in textEditor
This commit is contained in:
parent
d69f02f2c4
commit
af4e123739
@ -74,8 +74,8 @@ const TextEditor = () => {
|
||||
try {
|
||||
const response = await getProcessedAreasByDocumentId(selectedDocumentId)
|
||||
if (!response || response.length === 0) return
|
||||
const fullTextOfAreas = response.map(area => area.fullText + '\n').join('\n')
|
||||
setEditorValue(fullTextOfAreas)
|
||||
const linesofArea = response.map(area => area.lines.map(line => line.fullText + '\n')).join('\n')
|
||||
setEditorValue(linesofArea)
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
setEditorValue('# No Areas on Document were textualized')
|
||||
|
Loading…
x
Reference in New Issue
Block a user