Migration notifications fixed
This commit is contained in:
+1
-1
@@ -1731,7 +1731,7 @@ export const initStore = async () => {
|
|||||||
const foundTagNames = new Set<string>();
|
const foundTagNames = new Set<string>();
|
||||||
store.tasks.forEach(t => t.tags?.forEach(tag => foundTagNames.add(tag)));
|
store.tasks.forEach(t => t.tags?.forEach(tag => foundTagNames.add(tag)));
|
||||||
for (const tagName of foundTagNames) {
|
for (const tagName of foundTagNames) {
|
||||||
if (tagName === "__template__") continue;
|
if (tagName === "__template__" || tagName.startsWith("@") || tagName.startsWith("#")) continue;
|
||||||
if (!store.tagDefinitions.find(d => d.name === tagName)) {
|
if (!store.tagDefinitions.find(d => d.name === tagName)) {
|
||||||
await upsertTagDefinition(tagName, 5, undefined, document.documentElement.classList.contains("dark") ? "dark" : "light");
|
await upsertTagDefinition(tagName, 5, undefined, document.documentElement.classList.contains("dark") ? "dark" : "light");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user