when only sort field changed, we don't need to update ordinals

This commit is contained in:
Damien Elmes 2021-03-07 18:07:25 +10:00
parent 3d0ddc8539
commit 455d609109

View file

@ -67,6 +67,7 @@ impl Collection {
note.prepare_for_update(nt, normalize_text)?; note.prepare_for_update(nt, normalize_text)?;
self.storage.update_note(&note)?; self.storage.update_note(&note)?;
} }
return Ok(());
} else { } else {
// nothing to do // nothing to do
return Ok(()); return Ok(());