mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	hidden subtree is not archived anymore
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
const noteTypes = require("../services/note_types");
 | 
			
		||||
const noteTypeService = require("../services/note_types");
 | 
			
		||||
 | 
			
		||||
function mandatory(obj) {
 | 
			
		||||
    if (obj === undefined ) {
 | 
			
		||||
@@ -63,6 +63,8 @@ function isNoteType(obj) {
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    const noteTypes = noteTypeService.getNoteTypeNames();
 | 
			
		||||
 | 
			
		||||
    if (!noteTypes.includes(obj)) {
 | 
			
		||||
        return `'${obj}' is not a valid note type, allowed types are: ` + noteTypes.join(", ");
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user