append empty lineGroup

This commit is contained in:
Qing 2023-03-28 21:32:25 +08:00
parent af167a0daa
commit 14596247c1

View File

@ -562,6 +562,8 @@ export default function Editor() {
setImageWidth(newRender.width)
const newRenders = [...renders, newRender]
setRenders(newRenders)
const newLineGroups = [...lineGroups, []]
setLineGroups(newLineGroups)
const end = new Date()
const time = end.getTime() - start.getTime()
@ -591,6 +593,8 @@ export default function Editor() {
isProcessing,
setImageHeight,
setImageWidth,
lineGroups,
setLineGroups,
]
)