From bb56e9bc20fe3b6bc3081a076fa3d51c78be02a0 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 26 Apr 2020 14:45:52 +1000 Subject: [PATCH] remove notetype from cache when removing --- rslib/src/notetype/mod.rs | 1 + 1 file changed, 1 insertion(+) 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) }) }