hidden subtree is not archived anymore

This commit is contained in:
zadam
2022-12-16 16:00:49 +01:00
parent b202b43bf5
commit d34a0a9fc0
10 changed files with 64 additions and 42 deletions

View File

@@ -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(", ");
}