fix: move to well known parent when no parent selected (#5516)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2024-05-06 16:13:45 +07:00 committed by GitHub
parent 93192bcdbc
commit 45446a497f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,7 @@
async function save (): Promise<void> {
await client.update(value, {
space,
attachedTo: parent
attachedTo: parent ?? document.ids.NoParent
})
}