diff --git a/src/public/javascripts/services/note_detail.js b/src/public/javascripts/services/note_detail.js index 862f0cf9d..3d4852bfb 100644 --- a/src/public/javascripts/services/note_detail.js +++ b/src/public/javascripts/services/note_detail.js @@ -228,15 +228,16 @@ async function loadAttributes() { const promoted = attributes.filter(attr => (attr.type === 'label-definition' || attr.type === 'relation-definition') && attr.value.isPromoted); - let idx = 1; + let idx = 2; // because idx is also tabIndex and 1 is the title async function createRow(definitionAttr, valueAttr) { const definition = definitionAttr.value; - const inputId = "promoted-input-" + (idx++); + const inputId = "promoted-input-" + idx; const $tr = $("