Merge pull request #266 from presenton/fix/outline-edit

fix(nextjs): outline edit issue
This commit is contained in:
Shiva Raj Badu 2025-09-02 20:27:03 +05:45 committed by GitHub
commit 6a5efc5c98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,7 +49,9 @@ export function OutlineItem({
if (isStreaming) return;
const newData = outlines?.map((each, idx) => {
if (idx === index - 1) {
return newOutline
return {
content: newOutline
}
}
return each;
});