diff --git a/rslib/src/notetype/mod.rs b/rslib/src/notetype/mod.rs index 80b479b5e..db1aaff35 100644 --- a/rslib/src/notetype/mod.rs +++ b/rslib/src/notetype/mod.rs @@ -387,6 +387,7 @@ impl Collection { // but we need to do it in this layer in the future for undo handling self.transact(None, |col| { col.storage.set_schema_modified()?; + col.state.notetype_cache.remove(&ntid); col.storage.remove_notetype(ntid) }) }