mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	feat(views/geomap): remove old geo map type
This commit is contained in:
		@@ -1,4 +1,3 @@
 | 
			
		||||
import type { AttachmentRow } from "@triliumnext/commons";
 | 
			
		||||
import becca from "../becca/becca";
 | 
			
		||||
import becca_loader from "../becca/becca_loader";
 | 
			
		||||
import cls from "../services/cls.js";
 | 
			
		||||
@@ -12,7 +11,7 @@ export default () => {
 | 
			
		||||
        hidden_subtree.checkHiddenSubtree(true);
 | 
			
		||||
 | 
			
		||||
        for (const note of Object.values(becca.notes)) {
 | 
			
		||||
            if (note.type !== "geoMap") {
 | 
			
		||||
            if (note.type as string !== "geoMap") {
 | 
			
		||||
                continue;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -102,7 +102,7 @@ eventService.subscribe(eventService.ENTITY_CREATED, ({ entityName, entity }) =>
 | 
			
		||||
            const content = note.getContent();
 | 
			
		||||
 | 
			
		||||
            if (
 | 
			
		||||
                ["text", "code", "mermaid", "canvas", "relationMap", "mindMap", "geoMap"].includes(note.type) &&
 | 
			
		||||
                ["text", "code", "mermaid", "canvas", "relationMap", "mindMap"].includes(note.type) &&
 | 
			
		||||
                typeof content === "string" &&
 | 
			
		||||
                // if the note has already content we're not going to overwrite it with template's one
 | 
			
		||||
                (!content || content.trim().length === 0) &&
 | 
			
		||||
 
 | 
			
		||||
@@ -15,7 +15,6 @@ const noteTypes = [
 | 
			
		||||
    { type: "doc", defaultMime: "" },
 | 
			
		||||
    { type: "contentWidget", defaultMime: "" },
 | 
			
		||||
    { type: "mindMap", defaultMime: "application/json" },
 | 
			
		||||
    { type: "geoMap", defaultMime: "application/json" },
 | 
			
		||||
    { type: "aiChat", defaultMime: "application/json" }
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user