 event.newIndex) {
              {% comment %} Remove and clone the objective's tasks row {% endcomment %}
              let child = $tasksEventItem.remove().clone();
              {% comment %} Place the tasks row after the objective in its new position {% endcomment %}
              $eventItem.after(child);
              {% comment %} Move the orphaned tasks row before the moved objective {% endcomment %}
              let childTr = $tasksEventItem.next('tr').remove().clone();
              $eventItem.bef