remove notetype from cache when removing

This commit is contained in:
Damien Elmes 2020-04-26 14:45:52 +10:00
parent 6e1d2990a0
commit bb56e9bc20

View file

@ -387,6 +387,7 @@ impl Collection {
// but we need to do it in this layer in the future for undo handling // but we need to do it in this layer in the future for undo handling
self.transact(None, |col| { self.transact(None, |col| {
col.storage.set_schema_modified()?; col.storage.set_schema_modified()?;
col.state.notetype_cache.remove(&ntid);
col.storage.remove_notetype(ntid) col.storage.remove_notetype(ntid)
}) })
} }