Erase a document if the AST is set

This commit is contained in:
Clément Renault 2025-04-16 23:12:31 +02:00
parent e755e25847
commit 446b9c142c
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -596,7 +596,7 @@ impl<'pl> PayloadOperations<'pl> {
return Ok(None);
};
if self.is_new {
if self.is_new || ast.is_some() {
Ok(Some(DocumentChange::Insertion(Insertion::create(
self.docid,
external_doc,