mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
core: use migrations to dedup shortcuts
This commit is contained in:
@@ -110,7 +110,12 @@ const migrations = [
|
||||
if (!item.data || item.data.iv) return item;
|
||||
item.type = "tiptap";
|
||||
return item;
|
||||
},
|
||||
},
|
||||
shortcut: (item) => {
|
||||
if (item.id === item.item.id) return item;
|
||||
item.id = item.item.id;
|
||||
return item;
|
||||
},
|
||||
tiptap: (item) => {
|
||||
return changeSessionContentType(item);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user