mirror of
https://github.com/zadam/trilium.git
synced 2026-01-05 23:19:56 +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