fix: First auto-save unfocuses document (#1046)
* fix: Autosave unfocuses document * Revert unneeded change * test: le fix * fix: Handle offline state fix: Untitled documents appear with empty titles * fix: Draft bubble roundness (yes, it doesnt belong here but see it, fix it)
This commit is contained in:
@ -585,15 +585,14 @@ router.post('documents.unstar', auth(), async ctx => {
|
||||
|
||||
router.post('documents.create', auth(), async ctx => {
|
||||
const {
|
||||
title,
|
||||
text,
|
||||
title = '',
|
||||
text = '',
|
||||
publish,
|
||||
collectionId,
|
||||
parentDocumentId,
|
||||
index,
|
||||
} = ctx.body;
|
||||
ctx.assertUuid(collectionId, 'collectionId must be an uuid');
|
||||
ctx.assertPresent(text, 'text is required');
|
||||
if (parentDocumentId) {
|
||||
ctx.assertUuid(parentDocumentId, 'parentDocumentId must be an uuid');
|
||||
}
|
||||
|
Reference in New Issue
Block a user