feat: processedLines instead of area in textEditor
This commit is contained in:
parent
d69f02f2c4
commit
af4e123739
@ -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')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user