Skip to content

Build your personal knowledge base with Trilium Notes

fix attribute sorting, closes #225

azivnerb8feb4cce3d9
diff --git a/src/public/javascripts/services/note_detail_relation_map.js b/src/public/javascripts/services/note_detail_relation_map.js
index 101959a919..457e673408 100644
--- a/src/public/javascripts/services/note_detail_relation_map.js
+++ b/src/public/javascripts/services/note_detail_relation_map.js
@@ -117,7 +117,7 @@ async function show() {
}
async function loadNotesAndRelations() {
- const noteIds = mapData.notes.map(note => note.noteId);console.log(noteIds);
+ const noteIds = mapData.notes.map(note => note.noteId);
const data = await server.post("notes/relation-map", {noteIds});
relations = [];
diff --git a/src/views/dialogs/attributes.ejs b/src/views/dialogs/attributes.ejs
index cf25c1b7e0..3f30c9d321 100644
--- a/src/views/dialogs/attributes.ejs
+++ b/src/views/dialogs/attributes.ejs
@@ -25,6 +25,8 @@
<tbody data-bind="foreach: ownedAttributes">
<tr data-bind="if: !isDeleted">
<td>
+ <input type="hidden" name="position" data-bind="value: position"/>
+
<select class="form-control attribute-type-select" style="width: auto;"
data-bind="options: $parent.availableTypes, optionsText: 'text', optionsValue: 'value', value: type, event: { change: $parent.typeChanged }"></select>
</td>